Skip to content

Commit bc51721

Browse files
committed
update env from notebook
1 parent 1475250 commit bc51721

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

articles/machine-learning/v1/tutorial-train-deploy-notebook.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ This tutorial and accompanying **utils.py** file is also available on [GitHub](h
9494
> Switch to the Jupyter Notebook now if you want to run the code while you read along.
9595
> To run a single code cell in a notebook, click the code cell and hit **Shift+Enter**. Or, run the entire notebook by choosing **Run all** from the top toolbar.
9696
97+
<!-- nbstart https://raw.githubusercontent.com/Azure/MachineLearningNotebooks/master/tutorials/compute-instance-quickstarts/quickstart-azureml-in-10mins/quickstart-azureml-in-10mins.ipynb -->
98+
9799
## Import data
98100
99101
Before you train a model, you need to understand the data you're using to train it. In this section, learn how to:
@@ -186,7 +188,7 @@ Train the model using the following code. This code uses MLflow autologging to t
186188
You'll be using the [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) classifier from the [SciKit Learn framework](https://scikit-learn.org/) to classify the data.
187189
188190
> [!NOTE]
189-
> The model training takes approximately 2 minutes to complete.**
191+
> The model training takes approximately 2 minutes to complete.
190192
191193
192194
```python
@@ -217,7 +219,6 @@ clf = LogisticRegression(
217219
with mlflow.start_run() as run:
218220
clf.fit(X_train, y_train)
219221
```
220-
221222
## View experiment
222223
223224
In the left-hand menu in Azure Machine Learning studio, select __Jobs__ and then select your job (__azure-ml-in10-mins-tutorial__). A job is a grouping of many runs from a specified script or piece of code. Multiple jobs can be grouped together as an experiment.
@@ -252,8 +253,7 @@ from azureml.core.webservice import AciWebservice
252253
# get a curated environment
253254
env = Environment.get(
254255
workspace=ws,
255-
name="AzureML-sklearn-0.24.1-ubuntu18.04-py37-cpu-inference",
256-
version=1
256+
name="AzureML-sklearn-1.0"
257257
)
258258
env.inferencing_stack_version='latest'
259259
@@ -342,14 +342,16 @@ service.delete()
342342
343343
If you want to control cost further, stop the compute instance by selecting the "Stop compute" button next to the **Compute** dropdown. Then start the compute instance again the next time you need it.
344344
345+
<!-- nbend -->
346+
345347
### Delete everything
346348
347349
Use these steps to delete your Azure Machine Learning workspace and all compute resources.
348350
349351
[!INCLUDE [aml-delete-resource-group](../includes/aml-delete-resource-group.md)]
350352
351353
352-
## Next steps
354+
## Related resources
353355
354356
+ Learn about all of the [deployment options for Azure Machine Learning](../how-to-deploy-online-endpoints.md).
355357
+ Learn how to [authenticate to the deployed model](../how-to-authenticate-online-endpoint.md).

0 commit comments

Comments
 (0)