Tutorial fixes

This commit is contained in:
Roope Astala
2018-10-24 13:45:15 -04:00
parent d940aca06d
commit 114449dd9b
2 changed files with 3 additions and 10 deletions

View File

@@ -64,7 +64,7 @@
},
"outputs": [],
"source": [
"%matplotlib inline\n",
"%matplotlib notebook\n",
"import numpy as np\n",
"import matplotlib\n",
"import matplotlib.pyplot as plt\n",
@@ -201,13 +201,6 @@
"Download the MNIST dataset and save the files into a `data` directory locally. Images and labels for both training and testing are downloaded."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,

View File

@@ -97,7 +97,7 @@
},
"outputs": [],
"source": [
"%matplotlib inline\n",
"%matplotlib notebook\n",
"import numpy as np\n",
"import matplotlib\n",
"import matplotlib.pyplot as plt\n",
@@ -480,7 +480,7 @@
"test_samples = bytes(test_samples, encoding = 'utf8')\n",
"\n",
"# predict using the deployed model\n",
"result = json.loads(service.run(input_data=test_samples))\n",
"result = service.run(input_data=test_samples)\n",
"\n",
"# compare actual value vs. the predicted values:\n",
"i = 0\n",