Skip to content

Commit 475ea36

Browse files
committed
update samples from Release-132 as a part of 1.0.48 SDK release
1 parent 9e0fc4f commit 475ea36

File tree

195 files changed

+31304
-4674
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+31304
-4674
lines changed

Diff for: configuration.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"\n",
5959
"### What is an Azure Machine Learning workspace\n",
6060
"\n",
61-
"An Azure ML Workspace is an Azure resource that organizes and coordinates the actions of many other Azure resources to assist in executing and sharing machine learning workflows. In particular, an Azure ML Workspace coordinates storage, databases, and compute resources providing added functionality for machine learning experimentation, deployment, inferencing, and the monitoring of deployed models."
61+
"An Azure ML Workspace is an Azure resource that organizes and coordinates the actions of many other Azure resources to assist in executing and sharing machine learning workflows. In particular, an Azure ML Workspace coordinates storage, databases, and compute resources providing added functionality for machine learning experimentation, deployment, inference, and the monitoring of deployed models."
6262
]
6363
},
6464
{
@@ -103,7 +103,7 @@
103103
"source": [
104104
"import azureml.core\n",
105105
"\n",
106-
"print(\"This notebook was created using version 1.0.45 of the Azure ML SDK\")\n",
106+
"print(\"This notebook was created using version 1.0.48 of the Azure ML SDK\")\n",
107107
"print(\"You are currently using version\", azureml.core.VERSION, \"of the Azure ML SDK\")"
108108
]
109109
},
@@ -258,7 +258,7 @@
258258
"```shell\n",
259259
"az vm list-skus -o tsv\n",
260260
"```\n",
261-
"* min_nodes - this sets the minimum size of the cluster. If you set the minimum to 0 the cluster will shut down all nodes while note in use. Setting this number to a value higher than 0 will allow for faster start-up times, but you will also be billed when the cluster is not in use.\n",
261+
"* min_nodes - this sets the minimum size of the cluster. If you set the minimum to 0 the cluster will shut down all nodes while not in use. Setting this number to a value higher than 0 will allow for faster start-up times, but you will also be billed when the cluster is not in use.\n",
262262
"* max_nodes - this sets the maximum size of the cluster. Setting this to a larger number allows for more concurrency and a greater distributed processing of scale-out jobs.\n",
263263
"\n",
264264
"\n",

Diff for: configuration.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: configuration
2+
dependencies:
3+
- pip:
4+
- azureml-sdk

Diff for: contrib/datadrift/azure-ml-datadrift.ipynb

+19-5
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@
3333
"source": [
3434
"## Install the DataDrift package\n",
3535
"\n",
36-
"Install the azureml-contrib-datadrift, azureml-contrib-opendatasets and lightgbm packages before running this notebook.\n",
36+
"Install the azureml-contrib-datadrift, azureml-opendatasets and lightgbm packages before running this notebook.\n",
3737
"```\n",
3838
"pip install azureml-contrib-datadrift\n",
39-
"pip install azureml-contrib-datasets\n",
4039
"pip install lightgbm\n",
4140
"```"
4241
]
@@ -63,7 +62,7 @@
6362
"import pandas as pd\n",
6463
"import requests\n",
6564
"from azureml.contrib.datadrift import DataDriftDetector, AlertConfiguration\n",
66-
"from azureml.contrib.opendatasets import NoaaIsdWeather\n",
65+
"from azureml.opendatasets import NoaaIsdWeather\n",
6766
"from azureml.core import Dataset, Workspace, Run\n",
6867
"from azureml.core.compute import AksCompute, ComputeTarget\n",
6968
"from azureml.core.conda_dependencies import CondaDependencies\n",
@@ -259,8 +258,7 @@
259258
"trainingDataset = Dataset.auto_read_files(dpath, include_path=True)\n",
260259
"trainingDataset = trainingDataset.register(workspace=ws, name=dataset_name, description=\"dset\", exist_ok=True)\n",
261260
"\n",
262-
"trainingDataSnapshot = trainingDataset.create_snapshot(snapshot_name=snapshot_name, compute_target=None, create_data_snapshot=True)\n",
263-
"datasets = [(Dataset.Scenario.TRAINING, trainingDataSnapshot)]\n",
261+
"datasets = [(Dataset.Scenario.TRAINING, trainingDataset)]\n",
264262
"print(\"dataset registration done.\\n\")\n",
265263
"datasets"
266264
]
@@ -574,6 +572,22 @@
574572
" time.sleep(3)"
575573
]
576574
},
575+
{
576+
"cell_type": "markdown",
577+
"metadata": {},
578+
"source": [
579+
"We need to wait up to 10 minutes for the Model Data Collector to dump the model input and inference data to storage in the Workspace, where it's used by the DataDriftDetector job."
580+
]
581+
},
582+
{
583+
"cell_type": "code",
584+
"execution_count": null,
585+
"metadata": {},
586+
"outputs": [],
587+
"source": [
588+
"time.sleep(600)"
589+
]
590+
},
577591
{
578592
"cell_type": "markdown",
579593
"metadata": {},

Diff for: contrib/datadrift/azure-ml-datadrift.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: azure-ml-datadrift
2+
dependencies:
3+
- pip:
4+
- azureml-sdk
5+
- azureml-contrib-datadrift
6+
- azureml-opendatasets
7+
- lightgbm
8+
- azureml-widgets

Diff for: how-to-use-azureml/automated-machine-learning/automl_env.yml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: azure_automl
22
dependencies:
33
# The python interpreter version.
44
# Currently Azure ML only supports 3.5.2 and later.
5+
- pip
56
- python>=3.5.2,<3.6.8
67
- nb_conda
78
- matplotlib==2.1.0

0 commit comments

Comments
 (0)