#machine-learning #neural-network #deep-learning #deeplearning

rustic_ml

A machine learning library created from scratch with Rust

3 releases

0.0.3 Oct 3, 2024
0.0.2 May 27, 2024
0.0.1 May 27, 2024
0.0.0 May 25, 2024

#203 in Machine learning

Download history 16/week @ 2024-09-21 131/week @ 2024-09-28 25/week @ 2024-10-05 6/week @ 2024-10-12

186 downloads per month

MIT license

130KB
1K SLoC

rustic_ml

A machine learning library created from scratch

Created by Kjetil Indrehus


Rust version Downloads

Status

Build docs passing ci

Summary

rustic_ml is a machine learning library designed to be easy to use, and give the developer a flexible API to work with. This library is built of first principles, and the goal is to avoid any dependencies.

⚠️ This library is in the prototype stage. Breaking changes can happen.

Table of content

Feature list

The library includes the following key features:

  • Matrix implementation
  • Dataframe implementation
  • Perceptron binary classifier

Usage

rustic_ml has documentation on docs.rs. It will be very useful to read it through https://docs.rs/rustic_ml/latest/rustic_ml/

Run the following Cargo command in your project directory:

cargo add rustic_ml

Or add it to the Cargo manifest. Make sure to pick the newest version:

[dependencies]
rustic_ml = "0.0.2"

Also see the ./examples/ folder for different examples. See also the specific use cases in the next section of the README file.

Use Cases

Binary classification

rustic_ml has implemented the Perceptron. It works well when you know your data is linearly separable. In the example below, we use a Jupyter Notebook with Rust kernel. This makes it easy to build up models with Rust:

image

(See the full demo examples/notebook_binary_classification.ipynb

Macros

Coming soon!

Feature Flags

Coming soon!

Deeper Reading

Coming soon!

Dependencies

~310KB