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
In this article, learn how to run your scikit-learn training scripts with Azure Machine Learning.
24
+
In this article, learn how to run your scikit-learn training scripts with Azure Machine Learning Python SDK v2.
25
25
26
26
The example scripts in this article are used to classify iris flower images to build a machine learning model based on scikit-learn's [iris dataset](https://archive.ics.uci.edu/ml/datasets/iris).
27
27
@@ -34,16 +34,16 @@ You can run this code in either an Azure Machine Learning compute instance, or y
34
34
35
35
- Azure Machine Learning compute instance
36
36
- Complete the [Quickstart: Get started with Azure Machine Learning](quickstart-create-resources.md) to create a compute instance. Every compute instance includes a dedicated notebook server pre-loaded with the SDK and the notebooks sample repository.
37
-
- Select the notebook tab in the Azure Machine Learning studio. In the samples training folder, find a completed and expanded notebook by navigating to this directory: **how-to-use-azureml > ml-frameworks > scikit-learn > train-hyperparameter-tune-deploy-with-sklearn** folder.
37
+
- Select the notebook tab in the Azure Machine Learning studio. In the samples training folder, find a completed and expanded notebook by navigating to this directory: **v2 > sdk > jobs > single-step > scikit-learn > train-hyperparameter-tune-deploy-with-sklearn** folder.
38
38
- You can use the pre-populated code in the sample training folder to complete this tutorial.
39
39
40
40
- Your Jupyter notebook server.
41
41
-[Install the Azure Machine Learning SDK (v2)](https://aka.ms/sdk-v2-install).
42
42
43
43
44
-
## Set up the experiment
44
+
## Set up the Job
45
45
46
-
This section sets up the training experiment by loading the required Python packages, connecting to a workspace, creating a compute resource to run a training job, and creating an environment to run the job.
46
+
This section sets up the job for training by loading the required Python packages, connecting to a workspace, creating a compute resource to run a command job, and creating an environment to run the job.
47
47
48
48
### Connect to the workspace
49
49
@@ -96,7 +96,7 @@ AzureML allows you to either use a curated (or ready-made) environment or create
96
96
97
97
#### Create a custom environment
98
98
99
-
To create your custom environment, you'll define your Conda dependencies in a YAML file. First, create a directory for storing the file. In this example, we've named the directory `dependencies_dir.yml`.
99
+
To create your custom environment, you'll define your Conda dependencies in a YAML file. First, create a directory for storing the file. In this example, we've named the directory `env`.
@@ -140,9 +140,9 @@ Next, create the script file in the source directory.
140
140
141
141
### Build the training job
142
142
143
-
Now that you have all the assets required to run your job, it's time to build it using the AzureML Python SDK v2. For this, we'll be creating a `command` job.
143
+
Now that you have all the assets required to run your job, it's time to build it using the AzureML Python SDK v2. For this, we'll be creating a `command`.
144
144
145
-
An AzureML `command`job is a resource that specifies all the details needed to execute your training code in the cloud. These details include the inputs and outputs, type of hardware to use, software to install, and how to run your code. The `command` job contains information to execute a single command.
145
+
An AzureML `command` is a resource that specifies all the details needed to execute your training code in the cloud. These details include the inputs and outputs, type of hardware to use, software to install, and how to run your code. The `command` contains information to execute a single command.
146
146
147
147
148
148
#### Configure the command
@@ -167,7 +167,7 @@ It's now time to submit the job to run in AzureML. This time you'll use `create_
167
167
Once completed, the job will register a model in your workspace (as a result of training) and output a link for viewing the job in AzureML studio.
168
168
169
169
> [!WARNING]
170
-
> Azure Machine Learning runs training scripts by copying the entire source directory. If you have sensitive data that you don't want to upload, use a [.ignore file](how-to-save-write-experiment-files.md#storage-limits-of-experiment-snapshots) or don't include it in the source directory. Instead, access your data using an Azure ML [dataset](v1/how-to-train-with-datasets.md).
170
+
> Azure Machine Learning runs training scripts by copying the entire source directory. If you have sensitive data that you don't want to upload, use a [.ignore file](how-to-save-write-experiment-files.md#storage-limits-of-experiment-snapshots) or don't include it in the source directory.
171
171
172
172
### What happens during job execution
173
173
As the job is executed, it goes through the following stages:
0 commit comments