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-azure-ml-in-a-day.md
-121Lines changed: 0 additions & 121 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -219,127 +219,6 @@ You might need to select **Refresh** to see the new folder and script in your **
219
219
220
220
:::image type="content" source="media/tutorial-azure-ml-in-a-day/refresh.png" alt-text="Screenshot shows the refresh icon.":::
221
221
222
-
### [Optional] Enable Intel® Extension for Scikit-Learn optimizations for more performance on Intel hardware
223
-
224
-
Want to speed up your scikit-learn scripts on Intel hardware? Try enabling [Intel® Extension for Scikit-Learn](https://www.intel.com/content/www/us/en/developer/tools/oneapi/scikit-learn.html) in your training script. Intel® Extension for Scikit-Learn is already installed in the Azure Machine Learning curated environment used in this tutorial, so no additional installation is needed.
225
-
226
-
To learn more about Intel® Extension for Scikit-Learn, visit the package's [documentation](https://intel.github.io/scikit-learn-intelex/).
227
-
228
-
If you want to use Intel® Extension for Scikit-Learn as part of the training script described above, you can enable the performance optimizations by adding the two lines of code to the top of the script file, as shown below.
229
-
230
-
231
-
```python
232
-
%%writefile {train_src_dir}/main.py
233
-
import os
234
-
import argparse
235
-
236
-
# Import and enable Intel Extension for Scikit-learn optimizations
237
-
# where possible
238
-
from sklearnex import patch_sklearn
239
-
patch_sklearn()
240
-
241
-
import pandas as pd
242
-
import mlflow
243
-
import mlflow.sklearn
244
-
from sklearn.ensemble import GradientBoostingClassifier
245
-
from sklearn.metrics import classification_report
246
-
from sklearn.model_selection import train_test_split
247
-
248
-
defmain():
249
-
"""Main function of the script."""
250
-
251
-
# input and output arguments
252
-
parser = argparse.ArgumentParser()
253
-
parser.add_argument("--data", type=str, help="path to input data")
0 commit comments