update tutorials

This commit is contained in:
Roope Astala
2019-01-22 14:24:31 -05:00
parent 88f6a966cc
commit 0d91f2d697
3 changed files with 6 additions and 16 deletions

View File

@@ -66,11 +66,10 @@
"source": [ "source": [
"%matplotlib inline\n", "%matplotlib inline\n",
"import numpy as np\n", "import numpy as np\n",
"import matplotlib\n",
"import matplotlib.pyplot as plt\n", "import matplotlib.pyplot as plt\n",
"\n", "\n",
"import azureml\n", "import azureml.core\n",
"from azureml.core import Workspace, Run\n", "from azureml.core import Workspace\n",
"\n", "\n",
"# check core SDK version number\n", "# check core SDK version number\n",
"print(\"Azure ML SDK Version: \", azureml.core.VERSION)" "print(\"Azure ML SDK Version: \", azureml.core.VERSION)"
@@ -205,7 +204,6 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"import os\n",
"import urllib.request\n", "import urllib.request\n",
"\n", "\n",
"os.makedirs('./data', exist_ok = True)\n", "os.makedirs('./data', exist_ok = True)\n",
@@ -354,7 +352,6 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"import os\n",
"script_folder = './sklearn-mnist'\n", "script_folder = './sklearn-mnist'\n",
"os.makedirs(script_folder, exist_ok=True)" "os.makedirs(script_folder, exist_ok=True)"
] ]
@@ -690,7 +687,7 @@
"metadata": { "metadata": {
"authors": [ "authors": [
{ {
"name": "roastala" "name": "haining"
} }
], ],
"kernelspec": { "kernelspec": {

View File

@@ -99,11 +99,9 @@
"source": [ "source": [
"%matplotlib inline\n", "%matplotlib inline\n",
"import numpy as np\n", "import numpy as np\n",
"import matplotlib\n",
"import matplotlib.pyplot as plt\n", "import matplotlib.pyplot as plt\n",
" \n", " \n",
"import azureml\n", "import azureml\n",
"from azureml.core import Workspace, Run\n",
"\n", "\n",
"# display the core SDK version number\n", "# display the core SDK version number\n",
"print(\"Azure ML SDK Version: \", azureml.core.VERSION)" "print(\"Azure ML SDK Version: \", azureml.core.VERSION)"
@@ -129,13 +127,9 @@
}, },
"outputs": [], "outputs": [],
"source": [ "source": [
"from azureml.core import Workspace\n",
"from azureml.core.model import Model\n",
"\n",
"ws = Workspace.from_config()\n", "ws = Workspace.from_config()\n",
"model=Model(ws, 'sklearn_mnist')\n", "model=Model(ws, 'sklearn_mnist')\n",
"model.download(target_dir='.', exist_ok=True)\n", "model.download(target_dir='.', exist_ok=True)\n",
"import os \n",
"# verify the downloaded model file\n", "# verify the downloaded model file\n",
"os.stat('./sklearn_mnist_model.pkl')" "os.stat('./sklearn_mnist_model.pkl')"
] ]
@@ -521,7 +515,6 @@
"outputs": [], "outputs": [],
"source": [ "source": [
"import requests\n", "import requests\n",
"import json\n",
"\n", "\n",
"# send a random row from the test set to score\n", "# send a random row from the test set to score\n",
"random_index = np.random.randint(0, len(X_test)-1)\n", "random_index = np.random.randint(0, len(X_test)-1)\n",
@@ -581,14 +574,14 @@
"> * Deploy the model to ACI\n", "> * Deploy the model to ACI\n",
"> * Test the deployed model\n", "> * Test the deployed model\n",
" \n", " \n",
"You can also try out the [Automatic algorithm selection tutorial](03.auto-train-models.ipynb) to see how Azure Machine Learning can auto-select and tune the best algorithm for your model and build that model for you." "You can also try out the [regression tutorial](regression-part1-data-prep.ipynb)."
] ]
} }
], ],
"metadata": { "metadata": {
"authors": [ "authors": [
{ {
"name": "roastala" "name": "haining"
} }
], ],
"kernelspec": { "kernelspec": {

View File

@@ -468,7 +468,7 @@
"> * Explored and reviewed training results\n", "> * Explored and reviewed training results\n",
"> * Registered the best model\n", "> * Registered the best model\n",
"\n", "\n",
"[Deploy your model](02.deploy-models.ipynb) with Azure Machine Learning." "You can also try out the [image classification tutorial](img-classification-part1-training.ipynb)."
] ]
} }
], ],