You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/machine-learning/how-to-use-mlflow-cli-runs.md
+49-51Lines changed: 49 additions & 51 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ ms.devlang: azurecli
16
16
17
17
# Track experiments and models with MLflow
18
18
19
-
*Tracking* is the process of saving relevant information about experiments. In this article, you learn how to use MLflow for tracking experiments and runs in Azure Machine Learning workspaces. The saved metadata varies by experiment, and can include:
19
+
*Tracking* is the process of saving relevant information about experiments. In this article, you learn how to use MLflow for tracking experiments and runs in Azure Machine Learning workspaces. The saved tracking metadata varies by experiment, and can include:
20
20
21
21
- Code
22
22
- Environment details such as OS version and Python packages
@@ -130,83 +130,81 @@ All Azure Machine Learning curated environments already have MLflow installed. H
Use the Azure Machine Learning jobs parameter `display_name` to configure the name of the job. Make sure not to use `mlflow.start_run(run_name="")` inside your training routine.
135
+
Use the Azure Machine Learning jobs parameter `display_name` to configure the name of the run.
138
136
139
-
# [Azure CLI](#tab/cli)
137
+
1. Use the `display_name` property to configure the job.
140
138
141
-
Create a YAML file with your job definition in a *job.yml* file outside the *src* directory.
The workspace is the top-level resource for Azure Machine Learning, providing a centralized place to work with the artifacts you create. Jobs that use MLflow and run on Azure Machine Learning automatically log any tracking information to the workspace. In this section, you connect to the workspace to do deployment tasks.
1.Connect to your Azure Machine Learning workspace.
159
+
1. Make sure notto use `mlflow.start_run(run_name="")` inside your training routine.
166
160
167
-
# [Azure CLI](#tab/cli)
168
-
169
-
Open your terminal and enter the following code:
161
+
### Submit the job
170
162
171
-
```azurecli
172
-
az account set --subscription <subscription>
173
-
az configure --defaults workspace=<workspace> group=<resource-group> location=<location>
174
-
```
163
+
The workspace is the top-level resource for Azure Machine Learning, providing a centralized place to work withall the Azure Machine Learning artifacts you create.
175
164
176
-
# [Python SDK](#tab/python)
165
+
1. Connect to the Azure Machine Learning workspace.
177
166
167
+
# [Azure CLI](#tab/cli)
178
168
179
-
180
-
1. Import the required libraries:
169
+
```azurecli
170
+
az account set--subscription <subscription>
171
+
az configure --defaults workspace=<workspace> group=<resource-group> location=<location>
172
+
```
181
173
182
-
```python
183
-
from azure.ai.ml import MLClient
184
-
from azure.identity import DefaultAzureCredential
185
-
```
186
-
187
-
1. Configure workspace details and get a handle to the workspace:
1. Open your terminal and use the following code to submit the job. Jobs that use MLflow and run on Azure Machine Learning automatically log any tracking information to the workspace.
198
196
199
197
# [Azure CLI](#tab/cli)
200
198
201
-
Use the Azure Machine Learning CLI to [submit your job](how-to-train-model.md).
199
+
Use the Azure Machine Learning CLI[to submit your job](how-to-train-model.md).
202
200
203
201
```azurecli
204
202
az ml job create -f job.yml --web
205
203
```
206
204
207
205
# [Python SDK](#tab/python)
208
206
209
-
Use the Python SDK to [submit your job](how-to-train-model.md).
207
+
Use the Python SDK[to submit your job](how-to-train-model.md).
0 commit comments