Registry / other / rusty-machine

rusty-machine

JSON →
library0.5.4rscratesunverified

A machine learning library providing algorithms for regression, classification, clustering, and neural networks.

# Cargo.toml [dependencies] rusty-machine = "0.5.4"
INSTALL
IMPORT
SIG · RUSTY-MACHINE
R
rusty-machine
otherrustv0.5.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LinRegressor
use rusty_machine::learning::lin_reg::LinRegressor;

Train a linear regression model and make a prediction.

use rusty_machine::learning::lin_reg::LinRegressor; use rusty_machine::linalg::Matrix; let inputs = Matrix::new(3, 1, vec![1.0, 2.0, 3.0]); let targets = Matrix::new(3, 1, vec![2.0, 4.0, 6.0]); let mut model = LinRegressor::default(); model.train(&inputs, &targets).unwrap(); let prediction = model.predict(&Matrix::new(1, 1, vec![4.0])).unwrap(); println!("Prediction: {:?}", prediction);
Debug
Known issues
breakingThe library is no longer actively maintained; consider using linfa or smartcore instead.
fix
Migrate to linfa or smartcore for continued support.
affects: >=0.5.0
Upgrade
Version history
0.5.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Amazon
1
Resources
rusty-machine — cargo add rusty-machine · libregistry