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-train-scikit-learn.md
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,6 +110,11 @@ Next, use the YAML file to create and register this custom environment in your w
110
110
111
111
For more information on creating and using environments, see [Create and use software environments in Azure Machine Learning](how-to-use-environments.md).
112
112
113
+
##### [Optional] Create a custom environment with Intel® Extension for Scikit-Learn
114
+
115
+
Want to speed up your scikit-learn scripts on Intel hardware? Try adding [Intel® Extension for Scikit-Learn](https://www.intel.com/content/www/us/en/developer/tools/oneapi/scikit-learn.html) into your conda yaml file and following the subsequent steps detailed above. We will show you how to enable these optimizations later in this example:
In this section, we'll cover how to run a training job, using a training script that we've provided. To begin, you'll build the training job by configuring the command for running the training script. Then, you'll submit the training job to run in Azure Machine Learning.
@@ -135,6 +140,14 @@ Next, create the script file in the source directory.
#### [Optional] Enable Intel® Extension for Scikit-Learn optimizations for more performance on Intel hardware
144
+
145
+
If you have installed Intel® Extension for Scikit-Learn (as demonstrated in the previous section), you can enable the performance optimizations by adding the two lines of code to the top of the script file, as shown below.
146
+
147
+
To learn more about Intel® Extension for Scikit-Learn, visit the package's [documentation](https://intel.github.io/scikit-learn-intelex/).
Now that you have all the assets required to run your job, it's time to build it using the Azure Machine Learning Python SDK v2. For this, we'll be creating a `command`.
@@ -217,4 +230,4 @@ After you've registered your model, you can deploy it the same way as any other
217
230
In this article, you trained and registered a scikit-learn model, and you learned about deployment options. See these other articles to learn more about Azure Machine Learning.
218
231
219
232
*[Track run metrics during training](how-to-log-view-metrics.md)
0 commit comments