mlflow.entities
The mlflow.entities
module defines entities returned by the MLflow
REST API.
-
class
mlflow.entities.
Experiment
(experiment_id, name, artifact_location, lifecycle_stage, tags=None) Experiment object.
Tags that have been set on the experiment.
-
class
mlflow.entities.
Run
(run_info, run_data) Run object.
-
data
The run data, including metrics, parameters, and tags.
Return type: mlflow.entities.RunData
-
info
The run metadata, such as the run id, start time, and status.
Return type: mlflow.entities.RunInfo
-
-
class
mlflow.entities.
RunData
(metrics=None, params=None, tags=None) Run data (metrics and parameters).
-
metrics
Dictionary of string key -> metric value for the current run. For each metric key, the metric value with the latest timestamp is returned. In case there are multiple values with the same latest timestamp, the maximum of these values is returned.
Dictionary of tag key (string) -> tag value for the current run.
-
-
class
mlflow.entities.
RunInfo
(run_uuid, experiment_id, user_id, status, start_time, end_time, lifecycle_stage, artifact_uri=None, run_id=None) Metadata about a run.
-
status
One of the values in
mlflow.entities.RunStatus
describing the status of the run.
-
-
class
mlflow.entities.
RunStatus
Enum for status of an
mlflow.entities.Run
.
-
class
mlflow.entities.
SourceType
Enum for originating source of a
mlflow.entities.Run
.
-
class
mlflow.entities.model_registry.
RegisteredModel
(name) Note
Experimental: This entity may change or be removed in a future release without warning.
MLflow entity for Registered Model. A registered model entity is uniquely identified by its name.
-
class
mlflow.entities.model_registry.
RegisteredModelDetailed
(name, creation_timestamp, last_updated_timestamp=None, description=None, latest_versions=None) Note
Experimental: This entity may change or be removed in a future release without warning.
MLflow entity for Registered Model Detailed. Provides additional metadata data for registered model in addition to information in
mlflow.entities.model_registry.RegisteredModel
.-
last_updated_timestamp
Integer. Timestamp of last update for this model version (milliseconds since the Unix epoch).
-
latest_versions
List of the latest
mlflow.entities.model_registry.ModelVersion
instances for each stage
-
-
class
mlflow.entities.model_registry.
ModelVersion
(registered_model, version) Note
Experimental: This entity may change or be removed in a future release without warning.
MLflow entity for Model Version. A model version is uniquely identified using underlying
mlflow.entities.model_registry.RegisteredModel
and version number.-
registered_model
An instance of
mlflow.entities.model_registry.RegisteredModel
-
-
class
mlflow.entities.model_registry.
ModelVersionDetailed
(registered_model, version, creation_timestamp, last_updated_timestamp=None, description=None, user_id=None, current_stage=None, source=None, run_id=None, status=None, status_message=None) Note
Experimental: This entity may change or be removed in a future release without warning.
MLflow entity for Model Version Detailed. Provides additional metadata data for model version in addition to information in
mlflow.entities.model_registry.ModelVersion
.