Skip to content

Commit 5cc9415

Browse files
authored
Update reference-migrate-sdk-v1-mlflow-tracking.md
1 parent 88f6977 commit 5cc9415

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

articles/machine-learning/reference-migrate-sdk-v1-mlflow-tracking.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,6 @@ mlflow.log_figure(fig, "sample_pyplot.png")
162162
```
163163

164164
* The image is logged as an artifact and will appear in the __Images__ tab in Azure Machine Learning Studio.
165-
* The `mlflow.log_figure` method is __experimental__.
166-
167165

168166
### Log a list of metrics
169167

@@ -344,7 +342,10 @@ mlflow.log_dict(RESIDUALS, 'mlflow_residuals.json')
344342

345343
## View run info and data
346344

347-
You can access run information using the MLflow run object's `data` and `info` properties. For more information, see [mlflow.entities.Run](https://mlflow.org/docs/latest/python_api/mlflow.entities.html#mlflow.entities.Run) reference.
345+
You can access run information using the properties `data` and `info` of the MLflow [run (mlflow.entities.Run)](https://mlflow.org/docs/latest/python_api/mlflow.entities.html#mlflow.entities.Run) object.
346+
347+
> [!TIP]
348+
> Experiments and runs tracking information in Azure Machine Learning can be queried using MLflow, which provides a comprehensive search API to query and search for experiments and runs easily, and quickly compare results. For more information about all the capabilities in MLflow in this dimension see [Query & compare experiments and runs with MLflow](how-to-track-experiments-mlflow.md)
348349
349350
The following example shows how to retrieve a finished run:
350351

@@ -353,7 +354,7 @@ from mlflow.tracking import MlflowClient
353354

354355
# Use MlFlow to retrieve the run that was just completed
355356
client = MlflowClient()
356-
finished_mlflow_run = MlflowClient().get_run(mlflow_run.info.run_id)
357+
finished_mlflow_run = MlflowClient().get_run("<RUN_ID>")
357358
```
358359

359360
The following example shows how to view the `metrics`, `tags`, and `params`:
@@ -396,12 +397,16 @@ To view the artifacts of a run, use [MlFlowClient.list_artifacts](https://mlflow
396397
client.list_artifacts(finished_mlflow_run.info.run_id)
397398
```
398399
399-
To download an artifact, use [MlFlowClient.download_artifacts](https://www.mlflow.org/docs/latest/python_api/mlflow.tracking.html#mlflow.tracking.MlflowClient.download_artifacts):
400+
To download an artifact, use [mlflow.artifacts.download_artifacts](https://www.mlflow.org/docs/latest/python_api/mlflow.tracking.html#mlflow.tracking.MlflowClient.download_artifacts):
400401
401402
```python
402-
client.download_artifacts(finished_mlflow_run.info.run_id, "Azure.png")
403+
mlflow.artifacts.download_artifacts(run_id=finished_mlflow_run.info.run_id, artifact_path="Azure.png")
403404
```
405+
404406
## Next steps
405407
406-
* [Track ML experiments and models with MLflow](how-to-use-mlflow-cli-runs.md)
407-
* [Log and view metrics](how-to-log-view-metrics.md)
408+
* [Track ML experiments and models with MLflow](how-to-use-mlflow-cli-runs.md).
409+
* [Log metrics, parameters and files with MLflow](how-to-log-view-metrics).
410+
* [Logging MLflow models](how-to-log-mlflow-models.md).
411+
* [Query & compare experiments and runs with MLflow](how-to-track-experiments-mlflow.md).
412+
* [Manage models registries in Azure Machine Learning with MLflow](how-to-manage-models-mlflow.md).

0 commit comments

Comments
 (0)