pub struct Client { /* private fields */ }Expand description
An MLflow client.
This is the heart of this library.
It allows creating and accessing Experiments.
Implementations§
Source§impl Client
Possible backends for a Client.
impl Client
Possible backends for a Client.
Sourcepub fn for_server(url: &str) -> Self
pub fn for_server(url: &str) -> Self
Create a Client for a MLflow Tracking Server.
The url should be something like http://127.0.0.1:5000/api.
Source§impl Client
Client methods without error handling.
impl Client
Client methods without error handling.
pub fn create_experiment(&self, name: &str) -> Option<Experiment<'_>>
pub fn get_experiment(&self, name: &str) -> Option<Experiment<'_>>
pub fn list_experiments(&self) -> Vec<Experiment<'_>>
Source§impl Client
Client methods with error handling.
impl Client
Client methods with error handling.
pub fn try_create_experiment( &self, name: &str, ) -> Result<Experiment<'_>, CreateExperimentError>
pub fn try_get_experiment( &self, name: &str, ) -> Result<Experiment<'_>, GetExperimentError>
pub fn try_list_experiments(&self) -> Result<Vec<Experiment<'_>>, StorageError>
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl !Send for Client
impl !Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more