Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Raibows/MLinRust
/ functions
Functions
205 in github.com/Raibows/MLinRust
⨍
Functions
205
◇
Types & classes
45
Method
create_layer
(module: NNmodule)
src/model/nn/mod.rs:64
Method
default
()
src/dataset/mod.rs:124
Method
default
return an ndarray with NULL data NULL shape, be careful! WARNING**: deprecated
src/ndarray/mod.rs:153
Method
div
(self, rhs: f32)
src/ndarray/ops.rs:171
Method
div_assign
(&mut self, rhs: f32)
src/ndarray/ops.rs:190
Method
eq
(&self, other: &Self)
src/ndarray/ops.rs:34
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/ndarray/mod.rs:89
Method
forward
(&mut self, input: &NdArray, required_grad: bool)
src/model/nn/activation.rs:37
Method
forward_as_borrow
(&self, input: &NdArray)
src/model/nn/linear.rs:33
Method
forward_as_borrow
(&self, input: &NdArray)
src/model/nn/activation.rs:55
Method
from
(data: Vec<(&Vec<f32>, &T)>)
src/dataset/mod.rs:130
Method
from_name
(path: &str, name: DatasetName, _fill_missing_value: Option<utils::ImputeType>)
src/dataset/mod.rs:86
Function
get_arg_by_max
since NdArray has not implemented the template for usize, so we have to return NdArray<f32> instead todo
src/ndarray/utils.rs:122
Method
index
(&self, index: usize)
src/ndarray/ops.rs:49
Method
index_base_sizes
return the index bases for each dimension by given the shape Example: - shape: \[2, 3, 4\] - return: \[12, 4, 1\] - use: get the data of a index \[0,
src/ndarray/mod.rs:221
Method
index_mut
(&mut self, index: usize)
src/ndarray/ops.rs:56
Function
main
()
examples/08_kmeans.rs:4
Function
main
()
examples/05_svm.rs:6
Function
main
()
examples/06_mlp.rs:9
Function
main
()
examples/07_knn.rs:5
Function
main
()
examples/04_naive_bayes.rs:5
Function
main
numpy with 4 threads, 7.7 seconds rust version 30 seconds~
examples/00_ndarray.rs:6
Function
main
()
examples/03_linear_regression.rs:9
Function
main
()
examples/02_logistic_regression.rs:10
Function
main
()
examples/01_decision_tree.rs:5
Function
max_value
(src_data: Vec<&f32>)
src/ndarray/utils.rs:152
Function
min_value
(src_data: Vec<&f32>)
src/ndarray/utils.rs:144
Method
mul
this operator is for matrix multiplication see **point_multiply** method if you want Hadamard Product
src/ndarray/ops.rs:307
Method
mul_assign
(&mut self, rhs: f32)
src/ndarray/ops.rs:325
Method
neg
(mut self)
src/ndarray/ops.rs:41
Method
new
(seed: usize)
src/utils.rs:117
Method
new
create a dataset with (X, Y) T: the label type; usually usize is for classification task; f32 is for regression task features: input features, X label
src/dataset/mod.rs:150
Method
new
convert a dataset to Dataloader for batch iterations E: Dataset or &Dataset for both f32(regression) and usize(classification) shuffle: whether shuffl
src/dataset/dataloader.rs:73
Method
new
Naive Bayes model for classification task class_num: # of class num of a classification dataset is_discrete_feature: you have to tell the model which
src/model/naive_bayes.rs:32
Method
new
define a decision tree (not built yet), f32 for regression task, usize for classification task min_sample_split: it will not try to split the tree if
src/model/decision_tree.rs:116
Method
new
Support Vector Machine for binary classification only supports linear kernel, using SGD to optimize hinge loss update = lambda * (regularization(w)
src/model/svm.rs:34
Method
new
linear regression model with MeanSquaredError optimized by mini-batch SGD feature_size: the input size, usually the feature size output_size: the outp
src/model/linear_regression.rs:17
Method
new
logistic regression model with CrossEntropy optimized by mini-batch SGD for classification task feature_size: the input size class_num: # of classes,
src/model/logistic_regression.rs:17
Method
new
k: k nearest neighbours weighting: weighting the neibours, default is these neighbours are equal features: \[batch, feature\] labels: \[batch\] total_
src/model/knn.rs:99
Method
new
build K-Means model with unsupervised learning k: number of clusters max_iter: max iterations p: decide the distance, parameter of minkowski distance
src/model/kmeans.rs:24
Method
new
create a matrix with shape \[n, m\] + bias \[n\] insize: m outsize: n
src/model/nn/linear.rs:87
Method
new
create a neural network from the given ModuleList blocks: vector of enum NNModule
src/model/nn/mod.rs:55
Method
new
()
src/model/nn/criterion.rs:13
Method
new
from the specify shape
src/ndarray/mod.rs:68
Method
next
(&mut self)
src/dataset/dataloader.rs:23
Method
predict
(&self, feature: &Vec<f32>)
src/model/decision_tree.rs:96
Method
predict
(&self, feature: &Vec<f32>)
src/model/linear_regression.rs:46
Method
predict
(&self, feature: &Vec<f32>)
src/model/logistic_regression.rs:46
Method
predict
(&self, feature: &Vec<f32>)
src/model/knn.rs:242
Method
predict
return the nearest cluster idx, note that it is NOT the classification prediction
src/model/kmeans.rs:87
Method
predict
(&self, feature: &Vec<f32>)
src/model/nn/mod.rs:118
Method
predict_with_batch
predict a batch return: vector of T(f32 or usize)
src/model/mod.rs:20
Method
print_row
(f: &mut std::fmt::Formatter<'_>, row: &[f32])
src/ndarray/mod.rs:90
Method
random
create an NdArray filled with random numbers by the given shape and seed shape: specify the shape seed: default is set to 0
src/ndarray/mod.rs:171
Method
read_data_from_file
(path: &str)
src/dataset/mod.rs:77
Method
recursive_print
(data: &[f32], shape: &Vec<usize>, cursor: usize, f: &mut std::fmt::Formatter<'_>, width: usize)
src/ndarray/mod.rs:109
Function
std_value
(src_data: Vec<&f32>)
src/ndarray/utils.rs:163
Function
std_value_biased
(src_data: Vec<&f32>)
src/ndarray/utils.rs:167
Method
step
update the weights and bias with the grad_w and grad_b, respectively reduction: len(batch): average over the batch 1: sum the batch lr: learning rate
src/model/nn/mod.rs:27
Method
sub
(self, rhs: &NdArray)
src/ndarray/ops.rs:139
Method
sub_assign
(&mut self, rhs: NdArray)
src/ndarray/ops.rs:85
Function
sum_value
(src_data: Vec<&f32>)
src/ndarray/utils.rs:112
Function
test
()
src/dataset/utils.rs:124
Function
test_activation_functions
()
src/ndarray/utils.rs:232
Function
test_argmax
()
src/ndarray/utils.rs:240
Function
test_back_propagation
()
src/model/nn/linear.rs:111
Function
test_brute_force_search
()
src/model/knn.rs:381
Function
test_car_price_regression_dataset
()
src/model/decision_tree.rs:275
Function
test_dataloader_iterator
()
src/dataset/dataloader.rs:110
Function
test_dataset_iter
()
src/dataset/mod.rs:261
Function
test_dataset_load_profiling
()
src/dataset/mod.rs:288
Function
test_fmt_display
()
src/ndarray/mod.rs:441
Function
test_gaussian_pdf
()
src/model/naive_bayes.rs:148
Function
test_impute_value
()
src/dataset/car_price_dataset.rs:38
Function
test_index
()
src/ndarray/ops.rs:336
Function
test_iris_dataset
()
src/model/decision_tree.rs:239
Function
test_kdtree
()
src/model/knn.rs:364
Function
test_kmeans
()
src/model/kmeans.rs:106
Function
test_knn
()
src/model/knn.rs:398
Function
test_mean_std_min_max
()
src/ndarray/utils.rs:288
Function
test_mobile_phone_price_dataset
()
src/model/decision_tree.rs:257
Function
test_multiply_profile
()
src/ndarray/ops.rs:430
Function
test_new
()
src/ndarray/mod.rs:428
Function
test_nn_forward_backward
()
src/model/nn/mod.rs:138
Function
test_normalize_dataset
()
src/dataset/utils.rs:106
Function
test_ops_add
()
src/ndarray/ops.rs:348
Function
test_ops_inplace
()
src/ndarray/ops.rs:447
Function
test_ops_multiply_by_float
()
src/ndarray/ops.rs:377
Function
test_ops_multiply_by_ndarray
()
src/ndarray/ops.rs:385
Function
test_ops_sub
()
src/ndarray/ops.rs:366
Function
test_permute
()
src/ndarray/mod.rs:464
Function
test_permute_intrinsic
()
src/ndarray/mod.rs:498
Function
test_permute_profiling
()
src/ndarray/mod.rs:512
Function
test_process
()
src/dataset/car_price_dataset.rs:59
Function
test_rand
()
src/utils.rs:193
Function
test_repeat
()
src/ndarray/mod.rs:527
Function
test_softmax
()
src/ndarray/utils.rs:266
Function
test_split_dataset
()
src/dataset/mod.rs:273
Function
test_sum_ndarray
()
src/ndarray/utils.rs:252
Function
test_synthetic_samples
()
src/model/decision_tree.rs:224
← previous
next →
101–200 of 205, ranked by callers