Skip to content

Commit f3b563a

Browse files
authored
[doc] Fix a MLFlow doc for mlflow.set_tracking_uri (#57973)
## Description 1. the `mlflow.start_run()` does not have the `tracking_uri` arg: https://mlflow.org/docs/latest/api_reference/python_api/mlflow.html#mlflow.start_run 2. rewrite the mlflow set up as follow ``` mlflow.set_tracking_uri(uri="file://some_shared_storage_path/mlruns") mlflow.set_experiment("my_experiment") mlflow.start_run() ``` ## Related issues N/A --------- Signed-off-by: Lehui Liu <lehui@anyscale.com>
1 parent 222c22e commit f3b563a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/source/train/user-guides/experiment-tracking.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,9 @@ If applicable, make sure that you properly set up credentials on each training w
182182

183183
.. testcode::
184184
:skipif: True
185-
186-
mlflow.start_run(tracking_uri="file:some_shared_storage_path/mlruns")
185+
186+
mlflow.set_tracking_uri(uri="file://some_shared_storage_path/mlruns")
187+
mlflow.start_run()
187188

188189
**Remote, hosted by Databricks**
189190

0 commit comments

Comments
 (0)