@Generated public interface ExperimentsService
Experiments are located in the workspace file tree. You manage experiments using the same tools you use to manage other workspace objects such as folders, notebooks, and libraries.
This is the high-level interface, that contains generated methods.
Evolving: this interface is under development. Method signatures may change.
| Modifier and Type | Method and Description |
|---|---|
CreateExperimentResponse |
createExperiment(CreateExperiment createExperiment)
Creates an experiment with a name.
|
CreateLoggedModelResponse |
createLoggedModel(CreateLoggedModelRequest createLoggedModelRequest)
Create a logged model.
|
CreateRunResponse |
createRun(CreateRun createRun)
Creates a new run within an experiment.
|
void |
deleteExperiment(DeleteExperiment deleteExperiment)
Marks an experiment and associated metadata, runs, metrics, params, and tags for deletion.
|
void |
deleteLoggedModel(DeleteLoggedModelRequest deleteLoggedModelRequest)
Delete a logged model.
|
void |
deleteLoggedModelTag(DeleteLoggedModelTagRequest deleteLoggedModelTagRequest)
Delete a tag on a logged model.
|
void |
deleteRun(DeleteRun deleteRun)
Marks a run for deletion.
|
DeleteRunsResponse |
deleteRuns(DeleteRuns deleteRuns)
Bulk delete runs in an experiment that were created prior to or at the specified timestamp.
|
void |
deleteTag(DeleteTag deleteTag)
Deletes a tag on a run.
|
FinalizeLoggedModelResponse |
finalizeLoggedModel(FinalizeLoggedModelRequest finalizeLoggedModelRequest)
Finalize a logged model.
|
GetExperimentByNameResponse |
getByName(GetByNameRequest getByNameRequest)
Gets metadata for an experiment.
|
GetExperimentResponse |
getExperiment(GetExperimentRequest getExperimentRequest)
Gets metadata for an experiment.
|
GetMetricHistoryResponse |
getHistory(GetHistoryRequest getHistoryRequest)
Gets a list of all values for the specified metric for a given run.
|
GetLoggedModelResponse |
getLoggedModel(GetLoggedModelRequest getLoggedModelRequest)
Get a logged model.
|
GetExperimentPermissionLevelsResponse |
getPermissionLevels(GetExperimentPermissionLevelsRequest getExperimentPermissionLevelsRequest)
Gets the permission levels that a user can have on an object.
|
ExperimentPermissions |
getPermissions(GetExperimentPermissionsRequest getExperimentPermissionsRequest)
Gets the permissions of an experiment.
|
GetRunResponse |
getRun(GetRunRequest getRunRequest)
Gets the metadata, metrics, params, and tags for a run.
|
ListArtifactsResponse |
listArtifacts(ListArtifactsRequest listArtifactsRequest)
List artifacts for a run.
|
ListExperimentsResponse |
listExperiments(ListExperimentsRequest listExperimentsRequest)
Gets a list of all experiments.
|
void |
logBatch(LogBatch logBatch)
Logs a batch of metrics, params, and tags for a run.
|
void |
logInputs(LogInputs logInputs)
Logs inputs, such as datasets and models, to an MLflow Run.
|
void |
logLoggedModelParams(LogLoggedModelParamsRequest logLoggedModelParamsRequest)
Logs params for a logged model.
|
void |
logMetric(LogMetric logMetric)
Log a metric for a run.
|
void |
logModel(LogModel logModel)
**Note:** the [Create a logged model](/api/workspace/experiments/createloggedmodel) API
replaces this endpoint.
|
void |
logOutputs(LogOutputsRequest logOutputsRequest)
Logs outputs, such as models, from an MLflow Run.
|
void |
logParam(LogParam logParam)
Logs a param used for a run.
|
void |
restoreExperiment(RestoreExperiment restoreExperiment)
Restore an experiment marked for deletion.
|
void |
restoreRun(RestoreRun restoreRun)
Restores a deleted run.
|
RestoreRunsResponse |
restoreRuns(RestoreRuns restoreRuns)
Bulk restore runs in an experiment that were deleted no earlier than the specified timestamp.
|
SearchExperimentsResponse |
searchExperiments(SearchExperiments searchExperiments)
Searches for experiments that satisfy specified search criteria.
|
SearchLoggedModelsResponse |
searchLoggedModels(SearchLoggedModelsRequest searchLoggedModelsRequest)
Search for Logged Models that satisfy specified search criteria.
|
SearchRunsResponse |
searchRuns(SearchRuns searchRuns)
Searches for runs that satisfy expressions.
|
void |
setExperimentTag(SetExperimentTag setExperimentTag)
Sets a tag on an experiment.
|
void |
setLoggedModelTags(SetLoggedModelTagsRequest setLoggedModelTagsRequest)
Set tags for a logged model.
|
ExperimentPermissions |
setPermissions(ExperimentPermissionsRequest experimentPermissionsRequest)
Sets permissions on an object, replacing existing permissions if they exist.
|
void |
setTag(SetTag setTag)
Sets a tag on a run.
|
void |
updateExperiment(UpdateExperiment updateExperiment)
Updates experiment metadata.
|
ExperimentPermissions |
updatePermissions(ExperimentPermissionsRequest experimentPermissionsRequest)
Updates the permissions on an experiment.
|
UpdateRunResponse |
updateRun(UpdateRun updateRun)
Updates run metadata.
|
CreateExperimentResponse createExperiment(CreateExperiment createExperiment)
Throws `RESOURCE_ALREADY_EXISTS` if an experiment with the given name exists.
CreateLoggedModelResponse createLoggedModel(CreateLoggedModelRequest createLoggedModelRequest)
CreateRunResponse createRun(CreateRun createRun)
void deleteExperiment(DeleteExperiment deleteExperiment)
void deleteLoggedModel(DeleteLoggedModelRequest deleteLoggedModelRequest)
void deleteLoggedModelTag(DeleteLoggedModelTagRequest deleteLoggedModelTagRequest)
void deleteRun(DeleteRun deleteRun)
DeleteRunsResponse deleteRuns(DeleteRuns deleteRuns)
void deleteTag(DeleteTag deleteTag)
FinalizeLoggedModelResponse finalizeLoggedModel(FinalizeLoggedModelRequest finalizeLoggedModelRequest)
GetExperimentByNameResponse getByName(GetByNameRequest getByNameRequest)
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.
Throws `RESOURCE_DOES_NOT_EXIST` if no experiment with the specified name exists.
GetExperimentResponse getExperiment(GetExperimentRequest getExperimentRequest)
GetMetricHistoryResponse getHistory(GetHistoryRequest getHistoryRequest)
GetLoggedModelResponse getLoggedModel(GetLoggedModelRequest getLoggedModelRequest)
GetExperimentPermissionLevelsResponse getPermissionLevels(GetExperimentPermissionLevelsRequest getExperimentPermissionLevelsRequest)
ExperimentPermissions getPermissions(GetExperimentPermissionsRequest getExperimentPermissionsRequest)
GetRunResponse getRun(GetRunRequest getRunRequest)
If there are multiple values with the latest timestamp, return the maximum of these values.
ListArtifactsResponse listArtifacts(ListArtifactsRequest listArtifactsRequest)
ListExperimentsResponse listExperiments(ListExperimentsRequest listExperimentsRequest)
void logBatch(LogBatch logBatch)
In case of error (due to internal server error or an invalid request), partial data may be written.
You can write metrics, params, and tags in interleaving fashion, but within a given entity type are guaranteed to follow the order specified in the request body.
The overwrite behavior for metrics, params, and tags is as follows:
* Metrics: metric values are never overwritten. Logging a metric (key, value, timestamp) appends to the set of values for the metric with the provided key.
* Tags: tag values can be overwritten by successive writes to the same tag key. That is, if multiple tag values with the same key are provided in the same API request, the last-provided tag value is written. Logging the same tag (key, value) is permitted. Specifically, logging a tag is idempotent.
* Parameters: once written, param values cannot be changed (attempting to overwrite a param value will result in an error). However, logging the same param (key, value) is permitted. Specifically, logging a param is idempotent.
Request Limits ------------------------------- A single JSON-serialized API request may be up to 1 MB in size and contain:
* No more than 1000 metrics, params, and tags in total
* Up to 1000 metrics
* Up to 100 params
* Up to 100 tags
For example, a valid request might contain 900 metrics, 50 params, and 50 tags, but logging 900 metrics, 50 params, and 51 tags is invalid.
The following limits also apply to metric, param, and tag keys and values:
* Metric keys, param keys, and tag keys can be up to 250 characters in length
* Parameter and tag values can be up to 250 characters in length
void logInputs(LogInputs logInputs)
void logLoggedModelParams(LogLoggedModelParamsRequest logLoggedModelParamsRequest)
void logMetric(LogMetric logMetric)
void logModel(LogModel logModel)
Log a model to an MLflow Run.
void logOutputs(LogOutputsRequest logOutputsRequest)
void logParam(LogParam logParam)
void restoreExperiment(RestoreExperiment restoreExperiment)
Throws `RESOURCE_DOES_NOT_EXIST` if experiment was never created or was permanently deleted.
void restoreRun(RestoreRun restoreRun)
Throws `RESOURCE_DOES_NOT_EXIST` if the run was never created or was permanently deleted.
RestoreRunsResponse restoreRuns(RestoreRuns restoreRuns)
SearchExperimentsResponse searchExperiments(SearchExperiments searchExperiments)
SearchLoggedModelsResponse searchLoggedModels(SearchLoggedModelsRequest searchLoggedModelsRequest)
SearchRunsResponse searchRuns(SearchRuns searchRuns)
Search expressions can use `mlflowMetric` and `mlflowParam` keys.
void setExperimentTag(SetExperimentTag setExperimentTag)
void setLoggedModelTags(SetLoggedModelTagsRequest setLoggedModelTagsRequest)
ExperimentPermissions setPermissions(ExperimentPermissionsRequest experimentPermissionsRequest)
void setTag(SetTag setTag)
void updateExperiment(UpdateExperiment updateExperiment)
ExperimentPermissions updatePermissions(ExperimentPermissionsRequest experimentPermissionsRequest)
UpdateRunResponse updateRun(UpdateRun updateRun)
Copyright © 2026. All rights reserved.