Compare commits

...

5 Commits

Author SHA1 Message Date
Larry Franks
6a145086d8 Note about setting location.
@sdgilley Is this update OK? We want to show that location can be set for a new public preview functionality.
2021-07-09 10:37:21 -04:00
Sheri Gilley
cb695c91ce Create testnotebook.ipynb 2020-02-03 16:19:59 -06:00
Sheri Gilley
de505d67bd Delete testnotebook.ipynb 2020-02-03 16:14:53 -06:00
Sheri Gilley
f19cfa4630 Create testnotebook.ipynb 2020-02-03 16:11:59 -06:00
Sheri Gilley
7eed2e4b56 Update 01.train-models.ipynb 2020-02-03 15:29:22 -06:00
3 changed files with 70 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ try:
cpu_cluster = ComputeTarget(workspace=ws, name=cpu_cluster_name) cpu_cluster = ComputeTarget(workspace=ws, name=cpu_cluster_name)
print('Found existing cluster, use it.') print('Found existing cluster, use it.')
except ComputeTargetException: except ComputeTargetException:
# To use a different region for the compute, add a location='<region>' parameter
compute_config = AmlCompute.provisioning_configuration(vm_size='STANDARD_D2_V2', compute_config = AmlCompute.provisioning_configuration(vm_size='STANDARD_D2_V2',
max_nodes=4) max_nodes=4)
cpu_cluster = ComputeTarget.create(ws, cpu_cluster_name, compute_config) cpu_cluster = ComputeTarget.create(ws, cpu_cluster_name, compute_config)

View File

@@ -0,0 +1,67 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Testing notebook include"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"name": "import"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Azure ML SDK Version: 1.0.83\n"
]
}
],
"source": [
"%matplotlib inline\n",
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"\n",
"import azureml.core\n",
"from azureml.core import Workspace\n",
"\n",
"# check core SDK version number\n",
"print(\"Azure ML SDK Version: \", azureml.core.VERSION)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"celltoolbar": "Edit Metadata",
"kernelspec": {
"display_name": "Python 3.6 - AzureML",
"language": "python",
"name": "python3-azureml"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.9"
}
},
"nbformat": 4,
"nbformat_minor": 2
}

View File

@@ -58,6 +58,7 @@
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": null,
"metadata": { "metadata": {
"name": "import",
"tags": [ "tags": [
"check version" "check version"
] ]