Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Rustml
Rustml is a library for doing machine learning in Rust.
The documentation of the project with a descprition of the modules can be found here.
Features
- powerful matrix and vector support with BLAS bindings to provide very high performance
- k-nearest neighbord classification algorithm
- DBSCAN clustering algorithm
- gradient descent for minimizing functions
- linear regression
- easy access to MNIST database of handwritten digits via an the rustml dataset package
- parse and create CSV files
- statistical functions like mean and variance for vectors and matrices
- reading gzip compressed files
- distance metrics
- OpenCV binding to read images and videos plus interfaces for simplify feature extraction from images and videos (e.g. select pixels from images or frames of a video via a mask)
- scaling of feature vectors and matrices
- multidimensional sliding windows
- examples
Using rustml from scratch - example matrix multplication
Create a new project with cargo:
A new directory example
is created. Change into this directory and add the following lines Cargo.toml
:
[dependencies.rustml]
git = "https://github.com/daniel-e/rustml/"
or the following dependency:
[dependencies]
rustml = "*"
Edit the file main.rs
in the src
directory.
extern crate rustml;
use *;
Now, in the example
directory run the example with cargo run
.
Other examples
You can find other examples in the directory examples
. These examples can be executed with
Cargo as follows:
# the following examples require the rustml dataset package (see below)
Rustml datasets package
The rustml dataset package needs to be installed separately. The package currently contains
the MNIST database of handwritten digits and videos for the examples. Download the following
script which will download and install the package in your home in the directory
~/.rustml/
.
# download the install script
# download the datasets and install them into ~/.rustml/