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/tutorial-1st-experiment-sdk-train.md
+12-11Lines changed: 12 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ In this tutorial, you learn the following tasks:
23
23
> [!div class="checklist"]
24
24
> * Connect your workspace and create an experiment
25
25
> * Load data and train scikit-learn models
26
-
> * View training results in the portal
26
+
> * View training results in the studio
27
27
> * Retrieve the best model
28
28
29
29
## Prerequisites
@@ -120,32 +120,33 @@ The above code accomplishes the following:
120
120
121
121
1. For each alpha hyperparameter value in the `alphas` array, a new run is created within the experiment. The alpha value is logged to differentiate between each run.
122
122
1. In each run, a Ridge model is instantiated, trained, and used to run predictions. The root-mean-squared-error is calculated for the actual versus predicted values, and then logged to the run. At this point the run has metadata attached for both the alpha value and the rmse accuracy.
123
-
1. Next, the model for each run is serialized and uploaded to the run. This allows you to download the model file from the run in the portal.
123
+
1. Next, the model for each run is serialized and uploaded to the run. This allows you to download the model file from the run in the studio.
124
124
1. At the end of each iteration the run is completed by calling `run.complete()`.
125
125
126
-
After the training has completed, call the `experiment` variable to fetch a link to the experiment in the portal.
126
+
After the training has completed, call the `experiment` variable to fetch a link to the experiment in the studio.
127
127
128
128
```python
129
129
experiment
130
130
```
131
131
132
-
<tablestyle="width:100%"><tr><th>Name</th><th>Workspace</th><th>Report Page</th><th>Docs Page</th></tr><tr><td>diabetes-experiment</td><td>your-workspace-name</td><td>Link to Azure portal</td><td>Link to Documentation</td></tr></table>
132
+
<tablestyle="width:100%"><tr><th>Name</th><th>Workspace</th><th>Report Page</th><th>Docs Page</th></tr><tr><td>diabetes-experiment</td><td>your-workspace-name</td><td>Link to Azure Machine Learning studio</td><td>Link to Documentation</td></tr></table>
133
133
134
-
## View training results in portal
134
+
## View training results in studio
135
135
136
-
Following the **Link to Azure portal** takes you to the main experiment page. Here you see all the individual runs in the experiment. Any custom-logged values (`alpha_value` and `rmse`, in this case) become fields for each run, and also become available for the charts and tiles at the top of the experiment page. To add a logged metric to a chart or tile, hover over it, click the edit button, and find your custom-logged metric.
136
+
Following the **Link to Azure Machine Learning studio** takes you to the main experiment page. Here you see all the individual runs in the experiment. Any custom-logged values (`alpha_value` and `rmse`, in this case) become fields for each run, and also become available for the charts and tiles at the top of the experiment page. To add a logged metric to a chart or tile, hover over it, click the edit button, and find your custom-logged metric.
137
137
138
138
When training models at scale over hundreds and thousands of separate runs, this page makes it easy to see every model you trained, specifically how they were trained, and how your unique metrics have changed over time.
139
139
140
-

140
+
:::image type="content" source="./media/tutorial-1st-experiment-sdk-train/experiment-main.png" alt-text="Main Experiment page in the studio.":::
141
141
142
-
Clicking on a run number link in the `RUN NUMBER` column takes you to the page for each individual run. The default tab **Details** shows you more-detailed information on each run. Navigate to the **Outputs** tab, and you see the `.pkl` file for the model that was uploaded to the run during each training iteration. Here you can download the model file, rather than having to retrain it manually.
143
142
144
-

143
+
Select a run number link in the `RUN NUMBER` column to see the page for an individual run. The default tab **Details** shows you more-detailed information on each run. Navigate to the **Outputs + logs** tab, and you see the `.pkl` file for the model that was uploaded to the run during each training iteration. Here you can download the model file, rather than having to retrain it manually.
144
+
145
+
:::image type="content" source="./media/tutorial-1st-experiment-sdk-train/model-download.png" alt-text="Run details page in the studio.":::
145
146
146
147
## Get the best model
147
148
148
-
In addition to being able to download model files from the experiment in the portal, you can also download them programmatically. The following code iterates through each run in the experiment, and accesses both the logged run metrics and the run details (which contains the run_id). This keeps track of the best run, in this case the run with the lowest root-mean-squared-error.
149
+
In addition to being able to download model files from the experiment in the studio, you can also download them programmatically. The following code iterates through each run in the experiment, and accesses both the logged run metrics and the run details (which contains the run_id). This keeps track of the best run, in this case the run with the lowest root-mean-squared-error.
149
150
150
151
```python
151
152
minimum_rmse_runid =None
@@ -210,7 +211,7 @@ In this tutorial, you did the following tasks:
210
211
> [!div class="checklist"]
211
212
> * Connected your workspace and created an experiment
212
213
> * Loaded data and trained scikit-learn models
213
-
> * Viewed training results in the portal and retrieved models
214
+
> * Viewed training results in the studio and retrieved models
214
215
215
216
[Deploy your model](tutorial-deploy-models-with-aml.md) with Azure Machine Learning.
216
217
Learn how to develop [automated machine learning](tutorial-auto-train-models.md) experiments.
0 commit comments