trs-mlflow

Crates.iotrs-mlflow
lib.rstrs-mlflow
version0.3.2
sourcesrc
created_at2024-12-05 17:46:40.001087
updated_at2024-12-11 17:57:47.080394
descriptionThis crate contains an asynchronous client which implements 2.0 REST API of MlFlow server.
homepage
repositoryhttps://gitlab.com/teiresias2/ml-flow-client
max_upload_size
id1473433
size133,503
(spigi42)

documentation

README

trs-mlflow

This crate contains an asynchronous client which implements 2.0 REST API of MlFlow server.

The whole api description can be found here: https://mlflow.org/docs/latest/rest-api.html

Usage example:

use trs_mlflow::{run::CreateRun, Client};

let client = Client::new("http://localhost:5000/api");

let experiment_id = client
    .create_experiment(&"foo", vec![])
    .await
    .expect("BUG: Cannot create experiment");

let create = CreateRun::new()
    .run_name("bar")
    .experiment_id(&experiment_id)
    .build();

let run = client
    .create_run(create)
    .await
    .expect("BUG: Cannot create run");

If you want to run tests you need to run MlFlow server locally, which can be done by running this command:

./server/run.sh

This command creates a new venv, installs server and then runs it.

License: MIT

Commit count: 0

cargo fmt