Experiment operations
MLFlowClient.createexperiment — Functioncreateexperiment(instance::MLFlow, name::String;
artifact_location::Union{String, Missing}=missing,
tags::MLFlowUpsertData{Tag}=Tag[])Create an Experiment with a name. Returns the newly created Experiment. Validates that another Experiment with the same name does not already exist and fails if another Experiment with the same name already exists.
Arguments
instance:MLFlowconfiguration.name:Experimentname. This field is required.artifact_location: Location where all artifacts for theExperimentare stored. If not provided, the remote server will select an appropriate default.tags: A collection ofTagto set on theExperiment.
Returns
The ID of the newly created Experiment.
MLFlowClient.getexperiment — Functiongetexperiment(instance::MLFlow, experiment_id::String)
getexperiment(instance::MLFlow, experiment_id::Integer)Get metadata for an Experiment. This method works on deleted experiments.
Arguments
instance:MLFlowconfiguration.experiment_id: ID of the associatedExperiment.
Returns
An instance of type Experiment.
MLFlowClient.getexperimentbyname — Functiongetexperimentbyname(instance::MLFlow, experiment_name::String)Get metadata for an Experiment.
This endpoint will return deleted experiments, but prefers the active Experiment if an active and deleted Experiment share the same name. If multiple deleted experiments share the same name, the API will return one of them.
Arguments
instance:MLFlowconfiguration.experiment_name: Name of the associatedExperiment.
Returns
An instance of type Experiment.
MLFlowClient.deleteexperiment — Functiondeleteexperiment(instance::MLFlow, experiment_id::String)
deleteexperiment(instance::MLFlow, experiment_id::Integer)
deleteexperiment(instance::MLFlow, experiment::Experiment)Mark an Experiment and associated metadata, runs, metrics, params, and tags for deletion. If the Experiment uses FileStore, artifacts associated with Experiment are also deleted.
Arguments
instance:MLFlowconfiguration.experiment_id: ID of the associatedExperiment.
Returns
true if successful. Otherwise, raises exception.
MLFlowClient.restoreexperiment — Functionrestoreexperiment(instance::MLFlow, experiment_id::String)
restoreexperiment(instance::MLFlow, experiment_id::Integer)
restoreexperiment(instance::MLFlow, experiment::Experiment)Restore an Experiment marked for deletion. This also restores associated metadata, runs, metrics, params, and tags. If Experiment uses FileStore, underlying artifacts associated with Experiment are also restored.
Arguments
instance:MLFlowconfiguration.experiment_id: ID of the associatedExperiment.
Returns
true if successful. Otherwise, raises exception.
MLFlowClient.updateexperiment — Functionupdateexperiment(instance::MLFlow, experiment_id::String, new_name::String)
updateexperiment(instance::MLFlow, experiment_id::Integer, new_name::String)
updateexperiment(instance::MLFlow, experiment::Experiment, new_name::String)Update Experiment metadata.
Arguments
instance:MLFlowconfiguration.experiment_id: ID of the associatedExperiment.new_name: If provided, theExperimentname is changed to the new name. The new name must be unique.
Returns
true if successful. Otherwise, raises exception.
MLFlowClient.searchexperiments — Functionsearchexperiments(instance::MLFlow; max_results::Int64=20000, page_token::String="",
filter::String="", order_by::Array{String}=String[],
view_type::ViewType=ACTIVE_ONLY)Arguments
instance:MLFlowconfiguration.max_results: Maximum number of experiments desired.page_token: Token indicating the page of experiments to fetch.filter: A filter expression overExperimentattributes and tags that allows returning a subset of experiments. See MLFlow documentation.order_by: List of columns for ordering search results, which can includeExperimentname and id with an optional “DESC” or “ASC” annotation, where “ASC” is the default.view_type: Qualifier for type of experiments to be returned. If unspecified, return only active experiments.
Returns
- Vector of
Experimentthat were found in theMLFlowinstance. - The next page token if there are more results.
MLFlowClient.setexperimenttag — Functionsetexperimenttag(instance::MLFlow, experiment_id::String, key::String, value::String)
setexperimenttag(instance::MLFlow, experiment_id::Integer, key::String, value::String)
setexperimenttag(instance::MLFlow, experiment::Experiment, key::String, value::String)Set a tag on an Experiment. Experiment tags are metadata that can be updated.
Arguments
experiment_id: ID of theExperimentunder which to log the tag.key: Name of the tag.value: String value of the tag being logged.
Returns
true if successful. Otherwise, raises exception.
MLFlowClient.createexperimentpermission — Functioncreateexperimentpermission(instance::MLFlow, experiment_id::String, username::String,
permission::Permission)
createexperimentpermission(instance::MLFlow, experiment_id::Integer, username::String,
permission::Permission)
createexperimentpermission(instance::MLFlow, experiment::Experiment, username::String,
permission::Permission)Arguments
instance:MLFlowconfiguration.experiment_id:Experimentid.username:Userusername.permission: Permission to grant.
Returns
An instance of type ExperimentPermission.
MLFlowClient.getexperimentpermission — Functiongetexperimentpermission(instance::MLFlow, experiment_id::String, username::String)
getexperimentpermission(instance::MLFlow, experiment_id::Integer, username::String)
getexperimentpermission(instance::MLFlow, experiment::Experiment, username::String)Arguments
instance:MLFlowconfiguration.experiment_id:Experimentid.username:Userusername.
Returns
An instance of type ExperimentPermission.
MLFlowClient.updateexperimentpermission — Functionupdateexperimentpermission(instance::MLFlow, experiment_id::String, username::String,
permission::Permission)
updateexperimentpermission(instance::MLFlow, experiment_id::Integer, username::String,
permission::Permission)
updateexperimentpermission(instance::MLFlow, experiment::Experiment, username::String,
permission::Permission)Arguments
instance:MLFlowconfiguration.experiment_id:Experimentid.username:Userusername.permission: Permission to grant.
Returns
true if successful. Otherwise, raises exception.
MLFlowClient.deleteexperimentpermission — Functiondeleteexperimentpermission(instance::MLFlow, experiment_id::String, username::String)
deleteexperimentpermission(instance::MLFlow, experiment_id::Integer, username::String)
deleteexperimentpermission(instance::MLFlow, experiment::Experiment, username::String)Arguments
instance:MLFlowconfiguration.experiment_id:Experimentid.username:Userusername.
Returns
true if successful. Otherwise, raises exception.