Crate linfa[][src]

linfa aims to provide a comprehensive toolkit to build Machine Learning applications with Rust.

Kin in spirit to Python’s scikit-learn, it focuses on common preprocessing tasks and classical ML algorithms for your everyday ML tasks.

Current state

Such bold ambitions! Where are we now? Are we learning yet?

linfa aims to provide a comprehensive toolkit to build Machine Learning applications with Rust.

Kin in spirit to Python’s scikit-learn, it focuses on common preprocessing tasks and classical ML algorithms for your everyday ML tasks.

Current state

Where does linfa stand right now? Are we learning yet?

linfa currently provides sub-packages with the following algorithms:

NamePurposeStatusCategoryNotes
clusteringData clusteringTested / BenchmarkedUnsupervised learningClustering of unlabeled data; contains K-Means, Gaussian-Mixture-Model and DBSCAN
kernelKernel methods for data transformationTestedPre-processingMaps feature vector into higher-dimensional space
linearLinear regressionTestedPartial fitContains Ordinary Least Squares (OLS), Generalized Linear Models (GLM)
elasticnetElastic NetTestedSupervised learningLinear regression with elastic net constraints
logisticLogistic regressionTestedPartial fitBuilds two-class logistic regression models
reductionDimensionality reductionTestedPre-processingDiffusion mapping and Principal Component Analysis (PCA)
treesDecision treesExperimentalSupervised learningLinear decision trees
svmSupport Vector MachinesTestedSupervised learningClassification or regression analysis of labeled datasets
hierarchicalAgglomerative hierarchical clusteringTestedUnsupervised learningCluster and build hierarchy of clusters
bayesNaive BayesTestedSupervised learningContains Gaussian Naive Bayes
icaIndependent component analysisTestedUnsupervised learningContains FastICA implementation

We believe that only a significant community effort can nurture, build, and sustain a machine learning ecosystem in Rust - there is no other way forward.

If this strikes a chord with you, please take a look at the roadmap and get involved!

Re-exports

pub use dataset::multi_target_model::MultiTargetModel;
pub use dataset::Dataset;
pub use dataset::DatasetBase;
pub use dataset::DatasetPr;
pub use dataset::DatasetView;
pub use dataset::Float;
pub use dataset::Label;
pub use error::Error;

Modules

correlation

Correlation analysis for dataset features

dataset

Datasets

error

Error types in Linfa

metrics

Common metrics functions for classification and regression

prelude

Linfa prelude.

traits

Provide traits for different classes of algorithms