Skip to content

Commit 3c02102

Browse files
committed
update samples from Release-62 as a part of SDK release
1 parent 07e1676 commit 3c02102

File tree

8 files changed

+17
-22
lines changed

8 files changed

+17
-22
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Visit following repos to see projects contributed by Azure ML users:
6565
- [UMass Amherst Student Samples](https://github.com/katiehouse3/microsoft-azure-ml-notebooks) - A number of end-to-end machine learning notebooks, including machine translation, image classification, and customer churn, created by students in the 696DS course at UMass Amherst.
6666

6767
## Data/Telemetry
68-
This repository collects usage data and sends it to Microsoft to help improve our products and services. Read Microsoft's [privacy statement to learn more](https://privacy.microsoft.com/en-US/privacystatement)
68+
This repository collects usage data and sends it to Mircosoft to help improve our products and services. Read Microsoft's [privacy statement to learn more](https://privacy.microsoft.com/en-US/privacystatement)
6969

7070
To opt out of tracking, please go to the raw markdown or .ipynb files and remove the following line of code:
7171

how-to-use-azureml/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Learn how to use Azure Machine Learning services for experimentation and model m
44

55
As a pre-requisite, run the [configuration Notebook](../configuration.ipynb) notebook first to set up your Azure ML Workspace. Then, run the notebooks in following recommended order.
66

7-
* [train-within-notebook](./training/train-within-notebook): Train a model while tracking run history, and learn how to deploy the model as web service to Azure Container Instance.
7+
* [train-within-notebook](./training/train-within-notebook): Train a model hile tracking run history, and learn how to deploy the model as web service to Azure Container Instance.
88
* [train-on-local](./training/train-on-local): Learn how to submit a run to local computer and use Azure ML managed run configuration.
99
* [train-on-amlcompute](./training/train-on-amlcompute): Use a 1-n node Azure ML managed compute cluster for remote runs on Azure CPU or GPU infrastructure.
1010
* [train-on-remote-vm](./training/train-on-remote-vm): Use Data Science Virtual Machine as a target for remote runs.

how-to-use-azureml/explain-model/azure-integration/remote-explanation/explain-model-on-amlcompute.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@
287287
"# the submitted job is run in. Note the remote environment(s) needs to be similar to the local\n",
288288
"# environment, otherwise if a model is trained or deployed in a different environment this can\n",
289289
"# cause errors. Please take extra care when specifying your dependencies in a production environment.\n",
290-
"run_config.environment.python.conda_dependencies = CondaDependencies.create(conda_packages=[sklearn_dep, pandas_dep],\n",
291-
" pip_packages=azureml_pip_packages)\n",
290+
"azureml_pip_packages.extend([sklearn_dep, pandas_dep])\n",
291+
"run_config.environment.python.conda_dependencies = CondaDependencies.create(pip_packages=azureml_pip_packages)\n",
292292
"\n",
293293
"from azureml.core import Run\n",
294294
"from azureml.core import ScriptRunConfig\n",
@@ -427,8 +427,8 @@
427427
"# the submitted job is run in. Note the remote environment(s) needs to be similar to the local\n",
428428
"# environment, otherwise if a model is trained or deployed in a different environment this can\n",
429429
"# cause errors. Please take extra care when specifying your dependencies in a production environment.\n",
430-
"run_config.environment.python.conda_dependencies = CondaDependencies.create(conda_packages=[sklearn_dep, pandas_dep],\n",
431-
" pip_packages=azureml_pip_packages)\n",
430+
"azureml_pip_packages.extend([sklearn_dep, pandas_dep])\n",
431+
"run_config.environment.python.conda_dependencies = CondaDependencies.create(pip_packages=azureml_pip_packages)\n",
432432
"\n",
433433
"from azureml.core import Run\n",
434434
"from azureml.core import ScriptRunConfig\n",

how-to-use-azureml/explain-model/azure-integration/scoring-time/train-explain-model-locally-and-deploy.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,7 @@
350350
"# the submitted job is run in. Note the remote environment(s) needs to be similar to the local\n",
351351
"# environment, otherwise if a model is trained or deployed in a different environment this can\n",
352352
"# cause errors. Please take extra care when specifying your dependencies in a production environment.\n",
353-
"myenv = CondaDependencies.create(conda_packages=[sklearn_dep, pandas_dep],\n",
354-
" pip_packages=['sklearn-pandas', 'pyyaml'] + azureml_pip_packages,\n",
353+
"myenv = CondaDependencies.create(pip_packages=['sklearn-pandas', 'pyyaml', sklearn_dep, pandas_dep] + azureml_pip_packages,\n",
355354
" pin_sdk_version=False)\n",
356355
"\n",
357356
"with open(\"myenv.yml\",\"w\") as f:\n",

how-to-use-azureml/explain-model/azure-integration/scoring-time/train-explain-model-on-amlcompute-and-deploy.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,8 @@
294294
"# the submitted job is run in. Note the remote environment(s) needs to be similar to the local\n",
295295
"# environment, otherwise if a model is trained or deployed in a different environment this can\n",
296296
"# cause errors. Please take extra care when specifying your dependencies in a production environment.\n",
297-
"run_config.environment.python.conda_dependencies = CondaDependencies.create(conda_packages=[sklearn_dep, pandas_dep],\n",
298-
" pip_packages=['sklearn_pandas', 'pyyaml'] + azureml_pip_packages,\n",
297+
"azureml_pip_packages.extend(['sklearn-pandas', 'pyyaml', sklearn_dep, pandas_dep])\n",
298+
"run_config.environment.python.conda_dependencies = CondaDependencies.create(pip_packages=azureml_pip_packages,\n",
299299
" pin_sdk_version=False)\n",
300300
"# Now submit a run on AmlCompute\n",
301301
"from azureml.core.script_run_config import ScriptRunConfig\n",
@@ -459,8 +459,8 @@
459459
"# the submitted job is run in. Note the remote environment(s) needs to be similar to the local\n",
460460
"# environment, otherwise if a model is trained or deployed in a different environment this can\n",
461461
"# cause errors. Please take extra care when specifying your dependencies in a production environment.\n",
462-
"myenv = CondaDependencies.create(conda_packages=[sklearn_dep, pandas_dep],\n",
463-
" pip_packages=['sklearn-pandas', 'pyyaml'] + azureml_pip_packages,\n",
462+
"azureml_pip_packages.extend(['sklearn-pandas', 'pyyaml', sklearn_dep, pandas_dep])\n",
463+
"myenv = CondaDependencies.create(pip_packages=azureml_pip_packages,\n",
464464
" pin_sdk_version=False)\n",
465465
"\n",
466466
"with open(\"myenv.yml\",\"w\") as f:\n",

how-to-use-azureml/machine-learning-pipelines/intro-to-pipelines/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ These notebooks below are designed to go in sequence.
1717
12. [aml-pipelines-setup-versioned-pipeline-endpoints.ipynb](https://aka.ms/pl-ver-endpoint): This notebook shows how you can setup PipelineEndpoint and submit a Pipeline using the PipelineEndpoint.
1818
13. [aml-pipelines-showcasing-datapath-and-pipelineparameter.ipynb](https://aka.ms/pl-datapath): This notebook showcases how to use DataPath and PipelineParameter in AML Pipeline.
1919
14. [aml-pipelines-how-to-use-pipeline-drafts.ipynb](http://aka.ms/pl-pl-draft): This notebook shows how to use Pipeline Drafts. Pipeline Drafts are mutable pipelines which can be used to submit runs and create Published Pipelines.
20-
15. [aml-pipelines-how-to-use-modulestep.ipynb](https://aka.ms/pl-modulestep): This notebook shows how to define Module, ModuleVersion and how to use them in an AML Pipeline using ModuleStep.
20+
15. [aml-pipelines-hot-to-use-modulestep.ipynb](https://aka.ms/pl-modulestep): This notebook shows how to define Module, ModuleVersion and how to use them in an AML Pipeline using ModuleStep.
2121
16. [aml-pipelines-with-notebook-runner-step.ipynb](https://aka.ms/pl-nbrstep): This notebook shows how you can run another notebook as a step in Azure Machine Learning Pipeline.
2222

2323
![Impressions](https://PixelServer20190423114238.azurewebsites.net/api/impressions/MachineLearningNotebooks/how-to-use-azureml/machine-learning-pipelines/intro-to-pipelines/README.png)

how-to-use-azureml/machine-learning-pipelines/intro-to-pipelines/aml-pipelines-use-databricks-as-compute-target.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@
164164
" print('db_compute_name {}'.format(db_compute_name))\n",
165165
" print('db_resource_group {}'.format(db_resource_group))\n",
166166
" print('db_workspace_name {}'.format(db_workspace_name))\n",
167+
" print('db_access_token {}'.format(db_access_token))\n",
167168
" \n",
168169
" config = DatabricksCompute.attach_configuration(\n",
169170
" resource_group = db_resource_group,\n",
@@ -755,4 +756,4 @@
755756
},
756757
"nbformat": 4,
757758
"nbformat_minor": 2
758-
}
759+
}

tutorials/create-first-ml-experiment/tutorial-1st-experiment-sdk-train.ipynb

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,8 @@
5757
"source": [
5858
"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\")`. If you are running this notebook in a cloud notebook server in your workspace, the file is automatically in the root directory.\n",
5959
"\n",
60-
"If the following code asks for additional authentication, simply paste the link in a browser and enter the authentication token. In addition, if you have more than one tenant linked to your user, you will need to add the following lines:\n",
61-
"```\n",
62-
"from azureml.core.authentication import InteractiveLoginAuthentication\n",
63-
"interactive_auth = InteractiveLoginAuthentication(tenant_id=\"your-tenant-id\")\n",
64-
"Additional details on authentication can be found here: https://aka.ms/aml-notebook-auth \n",
65-
"```\n"
66-
]
60+
"If the following code asks for additional authentication, simply paste the link in a browser and enter the authentication token."
61+
]
6762
},
6863
{
6964
"cell_type": "code",
@@ -391,4 +386,4 @@
391386
},
392387
"nbformat": 4,
393388
"nbformat_minor": 2
394-
}
389+
}

0 commit comments

Comments
 (0)