tangram

Crates.iotangram
lib.rstangram
version0.7.0
sourcesrc
created_at2019-05-24 16:34:11.291571
updated_at2021-08-17 21:08:40.350985
descriptionMake predictions with a Tangram model from your Rust app. Learn more at https://www.tangram.dev/.
homepagehttps://github.com/tangramdotdev/tangram
repositoryhttps://github.com/tangramdotdev/tangram
max_upload_size
id136719
size77,883
all (github:tangramdotdev:all)

documentation

https://docs.rs/tangram

README

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.

Commit count: 0

cargo fmt