Crates.io | mlflow-client |
lib.rs | mlflow-client |
version | 0.0.1 |
source | src |
created_at | 2024-11-26 15:06:40.358912 |
updated_at | 2024-11-26 15:06:40.358912 |
description | MLflow REST API client (unofficial) |
homepage | |
repository | https://github.com/frozenlib/mlflow-client |
max_upload_size | |
id | 1461783 |
size | 122,290 |
MLflow REST API client for Rust. (Unofficial)
let mlflow = mlflow_client::Mlflow::new("http://localhost:5000")?;
let experiment =
mlflow.create_experiment_if_not_exists("experiment_name", Default::default())?;
let mut run = experiment.start_run("run_name")?;
#[derive(serde::Serialize)]
struct HyperParams {
param_a: f64,
param_b: f64,
}
let params = HyperParams {
param_a: 1.0,
param_b: 2.0,
};
run.log_params("", params)?;
for epoch in 0..100 {
run.log_metric("loss", 0.5, Some(epoch))?;
}
run.finish()?;
This project is dual licensed under Apache-2.0/MIT. See the two LICENSE-* files for details.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.