MCPcopy Create free account

hub / github.com/Raibows/MLinRust / functions

Functions205 in github.com/Raibows/MLinRust

Methodcreate_layer
(module: NNmodule)
src/model/nn/mod.rs:64
Methoddefault
()
src/dataset/mod.rs:124
Methoddefault
return an ndarray with NULL data NULL shape, be careful! WARNING**: deprecated
src/ndarray/mod.rs:153
Methoddiv
(self, rhs: f32)
src/ndarray/ops.rs:171
Methoddiv_assign
(&mut self, rhs: f32)
src/ndarray/ops.rs:190
Methodeq
(&self, other: &Self)
src/ndarray/ops.rs:34
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/ndarray/mod.rs:89
Methodforward
(&mut self, input: &NdArray, required_grad: bool)
src/model/nn/activation.rs:37
Methodforward_as_borrow
(&self, input: &NdArray)
src/model/nn/linear.rs:33
Methodforward_as_borrow
(&self, input: &NdArray)
src/model/nn/activation.rs:55
Methodfrom
(data: Vec<(&Vec<f32>, &T)>)
src/dataset/mod.rs:130
Methodfrom_name
(path: &str, name: DatasetName, _fill_missing_value: Option<utils::ImputeType>)
src/dataset/mod.rs:86
Functionget_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
Methodindex
(&self, index: usize)
src/ndarray/ops.rs:49
Methodindex_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
Methodindex_mut
(&mut self, index: usize)
src/ndarray/ops.rs:56
Functionmain
()
examples/08_kmeans.rs:4
Functionmain
()
examples/05_svm.rs:6
Functionmain
()
examples/06_mlp.rs:9
Functionmain
()
examples/07_knn.rs:5
Functionmain
()
examples/04_naive_bayes.rs:5
Functionmain
numpy with 4 threads, 7.7 seconds rust version 30 seconds~
examples/00_ndarray.rs:6
Functionmain
()
examples/03_linear_regression.rs:9
Functionmain
()
examples/02_logistic_regression.rs:10
Functionmain
()
examples/01_decision_tree.rs:5
Functionmax_value
(src_data: Vec<&f32>)
src/ndarray/utils.rs:152
Functionmin_value
(src_data: Vec<&f32>)
src/ndarray/utils.rs:144
Methodmul
this operator is for matrix multiplication see **point_multiply** method if you want Hadamard Product
src/ndarray/ops.rs:307
Methodmul_assign
(&mut self, rhs: f32)
src/ndarray/ops.rs:325
Methodneg
(mut self)
src/ndarray/ops.rs:41
Methodnew
(seed: usize)
src/utils.rs:117
Methodnew
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
Methodnew
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
Methodnew
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
Methodnew
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
Methodnew
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
Methodnew
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
Methodnew
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
Methodnew
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
Methodnew
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
Methodnew
create a matrix with shape \[n, m\] + bias \[n\] insize: m outsize: n
src/model/nn/linear.rs:87
Methodnew
create a neural network from the given ModuleList blocks: vector of enum NNModule
src/model/nn/mod.rs:55
Methodnew
()
src/model/nn/criterion.rs:13
Methodnew
from the specify shape
src/ndarray/mod.rs:68
Methodnext
(&mut self)
src/dataset/dataloader.rs:23
Methodpredict
(&self, feature: &Vec<f32>)
src/model/decision_tree.rs:96
Methodpredict
(&self, feature: &Vec<f32>)
src/model/linear_regression.rs:46
Methodpredict
(&self, feature: &Vec<f32>)
src/model/logistic_regression.rs:46
Methodpredict
(&self, feature: &Vec<f32>)
src/model/knn.rs:242
Methodpredict
return the nearest cluster idx, note that it is NOT the classification prediction
src/model/kmeans.rs:87
Methodpredict
(&self, feature: &Vec<f32>)
src/model/nn/mod.rs:118
Methodpredict_with_batch
predict a batch return: vector of T(f32 or usize)
src/model/mod.rs:20
Methodprint_row
(f: &mut std::fmt::Formatter<'_>, row: &[f32])
src/ndarray/mod.rs:90
Methodrandom
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
Methodread_data_from_file
(path: &str)
src/dataset/mod.rs:77
Methodrecursive_print
(data: &[f32], shape: &Vec<usize>, cursor: usize, f: &mut std::fmt::Formatter<'_>, width: usize)
src/ndarray/mod.rs:109
Functionstd_value
(src_data: Vec<&f32>)
src/ndarray/utils.rs:163
Functionstd_value_biased
(src_data: Vec<&f32>)
src/ndarray/utils.rs:167
Methodstep
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
Methodsub
(self, rhs: &NdArray)
src/ndarray/ops.rs:139
Methodsub_assign
(&mut self, rhs: NdArray)
src/ndarray/ops.rs:85
Functionsum_value
(src_data: Vec<&f32>)
src/ndarray/utils.rs:112
Functiontest
()
src/dataset/utils.rs:124
Functiontest_activation_functions
()
src/ndarray/utils.rs:232
Functiontest_argmax
()
src/ndarray/utils.rs:240
Functiontest_back_propagation
()
src/model/nn/linear.rs:111
Functiontest_brute_force_search
()
src/model/knn.rs:381
Functiontest_car_price_regression_dataset
()
src/model/decision_tree.rs:275
Functiontest_dataloader_iterator
()
src/dataset/dataloader.rs:110
Functiontest_dataset_iter
()
src/dataset/mod.rs:261
Functiontest_dataset_load_profiling
()
src/dataset/mod.rs:288
Functiontest_fmt_display
()
src/ndarray/mod.rs:441
Functiontest_gaussian_pdf
()
src/model/naive_bayes.rs:148
Functiontest_impute_value
()
src/dataset/car_price_dataset.rs:38
Functiontest_index
()
src/ndarray/ops.rs:336
Functiontest_iris_dataset
()
src/model/decision_tree.rs:239
Functiontest_kdtree
()
src/model/knn.rs:364
Functiontest_kmeans
()
src/model/kmeans.rs:106
Functiontest_knn
()
src/model/knn.rs:398
Functiontest_mean_std_min_max
()
src/ndarray/utils.rs:288
Functiontest_mobile_phone_price_dataset
()
src/model/decision_tree.rs:257
Functiontest_multiply_profile
()
src/ndarray/ops.rs:430
Functiontest_new
()
src/ndarray/mod.rs:428
Functiontest_nn_forward_backward
()
src/model/nn/mod.rs:138
Functiontest_normalize_dataset
()
src/dataset/utils.rs:106
Functiontest_ops_add
()
src/ndarray/ops.rs:348
Functiontest_ops_inplace
()
src/ndarray/ops.rs:447
Functiontest_ops_multiply_by_float
()
src/ndarray/ops.rs:377
Functiontest_ops_multiply_by_ndarray
()
src/ndarray/ops.rs:385
Functiontest_ops_sub
()
src/ndarray/ops.rs:366
Functiontest_permute
()
src/ndarray/mod.rs:464
Functiontest_permute_intrinsic
()
src/ndarray/mod.rs:498
Functiontest_permute_profiling
()
src/ndarray/mod.rs:512
Functiontest_process
()
src/dataset/car_price_dataset.rs:59
Functiontest_rand
()
src/utils.rs:193
Functiontest_repeat
()
src/ndarray/mod.rs:527
Functiontest_softmax
()
src/ndarray/utils.rs:266
Functiontest_split_dataset
()
src/dataset/mod.rs:273
Functiontest_sum_ndarray
()
src/ndarray/utils.rs:252
Functiontest_synthetic_samples
()
src/model/decision_tree.rs:224
← previousnext →101–200 of 205, ranked by callers