4 releases (breaking)
0.7.0 | Aug 17, 2021 |
---|---|
0.6.0 | Jul 19, 2021 |
0.5.0 | Jul 2, 2021 |
0.4.0 | Jun 25, 2021 |
0.0.1 |
|
#259 in Machine learning
33 downloads per month
285KB
7.5K
SLoC
Tangram for Rust
The Tangram Rust library makes it easy to make predictions with your Tangram machine learning model from Rust.
Usage
[dependencies]
tangram = "*"
let model: tangram::Model = tangram::Model::from_path("heart_disease.tangram", None).unwrap();
let input = tangram::predict_input! {
"age": 63.0,
"gender": "male",
// ...
};
let output = model.predict_one(input, None);
For more information, read the docs.
Examples
The source for this package contains a number of examples in the examples
directory. Each example has a README.md
explaining how to run it.
lib.rs
:
The Tangram crate makes it easy to make predictions with your Tangram machine learning model from Rust.
Usage
[dependencies]
tangram = "*"
let model: tangram::Model = tangram::Model::from_path("heart_disease.tangram", None).unwrap();
let input = tangram::predict_input! {
"age": 63.0,
"gender": "male",
// ...
};
let output = model.predict_one(input, None);
For more information, read the docs.
Dependencies
~15–29MB
~477K SLoC