Skip to content

Commit b138431

Browse files
committed
Merge branch 'master' of https://github.com/MicrosoftDocs/azure-docs-pr into dirFix
2 parents 0fafce3 + 0252fc4 commit b138431

File tree

7 files changed

+46
-34
lines changed

7 files changed

+46
-34
lines changed
101 KB
Loading
62.3 KB
Loading
96.8 KB
Loading
-87.8 KB
Loading

articles/machine-learning/service/tutorial-1st-experiment-sdk-setup.md

Lines changed: 38 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.topic: tutorial
99
author: trevorbye
1010
ms.author: trbye
1111
ms.reviewer: trbye
12-
ms.date: 08/28/2019
12+
ms.date: 09/25/2019
1313
---
1414

1515
# Tutorial: Get started creating your first ML experiment with the Python SDK
@@ -20,44 +20,65 @@ In this tutorial, you:
2020

2121
> [!div class="checklist"]
2222
> * Create an [Azure Machine Learning Workspace](concept-workspace.md) to use in the next tutorial.
23+
> * Clone the tutorials notebook to your folder in the workspace.
2324
> * Create a cloud-based Jupyter notebook VM with Azure Machine Learning Python SDK installed and pre-configured.
2425
2526
If you don’t have an Azure subscription, create a free account before you begin. Try the [free or paid version of Azure Machine Learning](https://aka.ms/AMLFree) today.
2627

2728
## Create a workspace
2829

29-
An Azure Machine Learning workspace is a foundational resource in the cloud that you use to experiment, train, and deploy machine learning models. It ties your Azure subscription and resource group to an easily consumed object in the SDK. If you already have an Azure Machine Learning workspace, skip to the [next section](#azure). Otherwise, create one now.
30+
An Azure Machine Learning workspace is a foundational resource in the cloud that you use to experiment, train, and deploy machine learning models. It ties your Azure subscription and resource group to an easily consumed object in the service.
31+
32+
You create a workspace via the Azure portal, a web-based console for managing your Azure resources.
3033

3134
[!INCLUDE [aml-create-portal](../../../includes/aml-create-in-portal.md)]
3235

33-
## <a name="azure"></a>Create a cloud notebook server
36+
>[!IMPORTANT]
37+
> Take note of your **workspace** and **subscription**. You'll need these to ensure you create your experiment in the right place.
38+
39+
40+
## <a name="azure"></a>Clone a notebook folder
3441

3542
This example uses the cloud notebook server in your workspace for an install-free and pre-configured experience. Use [your own environment](how-to-configure-environment.md#local) if you prefer to have control over your environment, packages and dependencies.
3643

37-
From your workspace, you create a cloud resource to get started using Jupyter notebooks. This resource is a cloud-based Linux virtual machine pre-configured with everything you need to run Azure Machine Learning.
44+
You complete the following experiment set-up and run steps in the workspace landing page (preview), a consolidated interface that includes machine learning tools to perform data science scenarios for data science practitioners of all skill levels.
45+
46+
1. Sign in to the [workspace landing page](https://ml.azure.com/).
47+
48+
1. Select your subscription and the workspace you created.
49+
50+
1. Select **Notebooks and Files** on the left.
51+
52+
1. Open the **samples** folder.
53+
54+
1. Select the **"..."** at the right of the **tutorials** folder and then select **Clone**.
55+
56+
![Clone folder](media/tutorial-1st-experiment-sdk-setup/clone-tutorials.png)
57+
58+
1. There is a folder displayed for each user who accesses the workspace. Select your folder to clone the **tutorial** folder there.
3859

39-
1. Open your workspace in the [Azure portal](https://portal.azure.com/). If you're not sure how to locate your workspace in the portal, see how to [find your workspace](how-to-manage-workspace.md#view).
60+
## <a name="open">Select a VM to run the notebook
4061

41-
1. On your workspace page in the Azure portal, select **Notebook VMs** on the left.
62+
1. Under **User Files** open your folder and then open the cloned **tutorials** folder.
4263

43-
1. Select **+New** to create a notebook VM.
64+
![Open tutorials folder](media/tutorial-1st-experiment-sdk-setup/expand-user-folder.png)
4465

45-
![Select New VM](./media/tutorial-1st-experiment-sdk-setup/add-workstation.png)
66+
> [!IMPORTANT]
67+
> You can view notebooks in the **samples** folder but you cannot run a notebook from there. In order to run a notebook, make sure you open the cloned version of the notebook in the **User Files** section.
68+
69+
1. Select the **tutorial-1st-experiment-sdk-train.ipynb** file in your **tutorials** folder.
4670

47-
1. Provide a name for your VM.
48-
+ Your Notebook VM name must be between 2 to 16 characters. Valid characters are letters, digits, and the - character.
49-
+ The name must also be unique across your Azure subscription.
71+
1. On the top bar, select a Notebook VM to use to run the notebook. These VMs are pre-configured with everything you need to run Azure Machine Learning. You can select a VM created by any user of your workspace.
5072

51-
1. Then select **Create**. It can take a moment to set up your VM.
73+
1. If no VMs are found, select **+ New VM** to create the VM.
5274

53-
1. Wait until the status changes to **Running**.
54-
After your VM is running, use the **Notebook VMs** section to launch the Jupyter web interface.
75+
![Create a VM](media/tutorial-1st-experiment-sdk-setup/no-vm.png)
5576

56-
1. Select **Jupyter** in the **URI** column for your VM.
77+
1. When you create a VM, provide a name. The name must be between 2 to 16 characters. Valid characters are letters, digits, and the - character, and must also be unique across your Azure subscription.
5778

58-
![Start the Jupyter notebook server](./media/tutorial-1st-experiment-sdk-setup/start-server.png)
79+
1. Then select **Create**. It can take approximately 5 minutes to set up your VM.
5980

60-
The link starts your notebook server and opens the Jupyter notebook webpage in a new browser tab. This link will only work for the person who creates the VM. Each user of the workspace must create their own VM.
81+
1. Once the VM is available it will be displayed in the top toolbar. You can now run the notebook either by using **Run all** in the toolbar, or by using **Shift+Enter** in the code cells of the notebook.
6182

6283

6384
## Next steps

articles/machine-learning/service/tutorial-1st-experiment-sdk-train.md

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,12 @@ The only prerequisite is to run part one of this tutorial, [Setup environment an
3030

3131
In this part of the tutorial, you run the code in the sample Jupyter notebook `tutorials/tutorial-1st-experiment-sdk-train.ipynb` opened at the end of part one. This article walks through the same code that is in the notebook.
3232

33-
## Launch Jupyter web interface
33+
## Open the notebook
3434

35-
1. On your workspace page in the Azure portal, select **Notebook VMs** on the left.
35+
1. Sign in to the [workspace landing page](https://ml.azure.com/).
3636

37-
1. Select **Jupyter** in the **URI** column for the VM you created in part one of this tutorial.
37+
1. Open the **tutorial-1st-experiment-sdk-train.ipynb** in your folder as shown in [part one](tutorial-1st-experiment-sdk-setup.md#open).
3838

39-
![Start the Jupyter notebook server](./media/tutorial-1st-experiment-sdk-setup/start-server.png)
40-
41-
The link starts your notebook server and opens the Jupyter notebook webpage in a new browser tab. This link will only work for the person who creates the VM. Each user of the workspace must create their own VM.
42-
43-
1. On the Jupyter notebook webpage, select the top foldername, which has your username.
44-
45-
This folder exists in the workspace [storage account](concept-workspace.md#resources) rather than on the notebook VM itself. If you delete the notebook VM, you'll still keep all your work. When you create a new notebook VM later, it will load this same folder. If you share your workspace with others, they will see your folder and you will see theirs.
46-
47-
1. Open the `samples-*` subdirectory, then open the Jupyter notebook `tutorials/tutorial-1st-experiment-sdk-train.ipynb`, **not** the `.yml` file of the same name.
4839

4940
> [!Warning]
5041
> Do **not** create a *new* notebook in the Jupyter interface! The notebook `tutorials/tutorial-1st-experiment-sdk-train.ipynb` is inclusive of **all code and data needed**
@@ -56,7 +47,7 @@ In this part of the tutorial, you run the code in the sample Jupyter notebook `t
5647
> The rest of this article contains the same content as you see in the notebook.
5748
>
5849
> Switch to the Jupyter notebook now if you want to read along as you run the code.
59-
> To run a single code cell in a notebook, click the code cell and hit **Shift+Enter**. Or, run the entire notebook by choosing **Cell > Run All** from the top menu.
50+
> 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.
6051
6152
Import the `Workspace` class, and load your subscription information from the file `config.json` using the function `from_config().` This looks for the JSON file in the current directory by default, but you can also specify a path parameter to point to the file using `from_config(path="your/file/path")`. In a cloud notebook server, the file is automatically in the root directory.
6253

@@ -134,11 +125,11 @@ After the training has completed, call the `experiment` variable to fetch a link
134125
experiment
135126
```
136127

137-
<table style="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>
128+
<table style="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>
138129

139130
## View training results in portal
140131

141-
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.
132+
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.
142133

143134
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.
144135

@@ -178,7 +169,7 @@ print("Best run_id rmse: " + str(minimum_rmse))
178169
Best run_id: 864f5ce7-6729-405d-b457-83250da99c80
179170
Best run_id rmse: 57.234760283951765
180171

181-
Use the best run id to fetch the individual run using the `Run` constructor along with the experiment object. Then call `get_file_names()` to see all the files available for download from this run. In this case, you only uploaded one file for each run during training.
172+
Use the best run ID to fetch the individual run using the `Run` constructor along with the experiment object. Then call `get_file_names()` to see all the files available for download from this run. In this case, you only uploaded one file for each run during training.
182173

183174
```python
184175
from azureml.core import Run

includes/aml-create-in-portal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ ms.date: 08/14/2019
3535
1. After you are finished configuring the workspace, select **Create**.
3636

3737
> [!Warning]
38-
> It can take a several minutes to create your workspace in the cloud.
38+
> It can take several minutes to create your workspace in the cloud.
3939
4040
When the process is finished, a deployment success message appears.
4141

0 commit comments

Comments
 (0)