Skip to content

Commit b7d5728

Browse files
authored
Update linear_learner_mnist.ipynb
1 parent ff94c32 commit b7d5728

File tree

1 file changed

+23
-13
lines changed

1 file changed

+23
-13
lines changed

introduction_to_amazon_algorithms/linear_learner_mnist/linear_learner_mnist.ipynb

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,8 @@
1313
" 2. [Data ingestion](#Data-ingestion)\n",
1414
" 3. [Data inspection](#Data-inspection)\n",
1515
" 4. [Data conversion](#Data-conversion)\n",
16-
"3. [Training the K-Means model](#Training-the-K-Means-model)\n",
16+
"3. [Training the linear model](#Training-the-linear-model)\n",
1717
"4. [Set up hosting for the model](#Set-up-hosting-for-the-model)\n",
18-
" 1. [Import model into hosting](#Import-model-into-hosting)\n",
19-
" 2. [Create endpoint configuration](#Create-endpoint-configuration)\n",
20-
" 3. [Create endpoint](#Create-endpoint)\n",
2118
"5. [Validate the model for use](#Validate-the-model-for-use)\n"
2219
]
2320
},
@@ -56,6 +53,7 @@
5653
"cell_type": "code",
5754
"execution_count": null,
5855
"metadata": {
56+
"collapsed": true,
5957
"isConfigCell": true
6058
},
6159
"outputs": [],
@@ -207,13 +205,15 @@
207205
"\n",
208206
"Again, we'll use the Amazon SageMaker Python SDK to kick off training, and monitor status until it is completed. In this example that takes between 7 and 11 minutes. Despite the dataset being small, provisioning hardware and loading the algorithm container take time upfront.\n",
209207
"\n",
210-
"First, let's specify our containers. Since we want this notebook to run in all 4 of Amazon SageMaker's regions, we'll create a small lookup. More details on algorithm containers can be found in [AWS documentation](https://docs-aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html)."
208+
"First, let's specify our containers. Since we want this notebook to run in all 4 of Amazon SageMaker's regions, we'll create a small lookup. More details on algorithm containers can be found in [AWS documentation](https://docs-aws.amazon.com/sagemaker/latest/dg/im-algo-docker-registry-paths.html)."
211209
]
212210
},
213211
{
214212
"cell_type": "code",
215213
"execution_count": null,
216-
"metadata": {},
214+
"metadata": {
215+
"collapsed": true
216+
},
217217
"outputs": [],
218218
"source": [
219219
"containers = {'us-west-2': '174872318107.dkr.ecr.us-west-2.amazonaws.com/linear-learner:latest',\n",
@@ -287,7 +287,9 @@
287287
{
288288
"cell_type": "code",
289289
"execution_count": null,
290-
"metadata": {},
290+
"metadata": {
291+
"collapsed": true
292+
},
291293
"outputs": [],
292294
"source": [
293295
"from sagemaker.predictor import csv_serializer, json_deserializer\n",
@@ -307,7 +309,9 @@
307309
{
308310
"cell_type": "code",
309311
"execution_count": null,
310-
"metadata": {},
312+
"metadata": {
313+
"collapsed": true
314+
},
311315
"outputs": [],
312316
"source": [
313317
"result = linear_predictor.predict(train_set[0][30:31])\n",
@@ -326,7 +330,9 @@
326330
{
327331
"cell_type": "code",
328332
"execution_count": null,
329-
"metadata": {},
333+
"metadata": {
334+
"collapsed": true
335+
},
330336
"outputs": [],
331337
"source": [
332338
"import numpy as np\n",
@@ -342,7 +348,9 @@
342348
{
343349
"cell_type": "code",
344350
"execution_count": null,
345-
"metadata": {},
351+
"metadata": {
352+
"collapsed": true
353+
},
346354
"outputs": [],
347355
"source": [
348356
"import pandas as pd\n",
@@ -369,7 +377,9 @@
369377
{
370378
"cell_type": "code",
371379
"execution_count": null,
372-
"metadata": {},
380+
"metadata": {
381+
"collapsed": true
382+
},
373383
"outputs": [],
374384
"source": [
375385
"import sagemaker\n",
@@ -380,7 +390,7 @@
380390
],
381391
"metadata": {
382392
"kernelspec": {
383-
"display_name": "Environment (conda_python3)",
393+
"display_name": "conda_python3",
384394
"language": "python",
385395
"name": "conda_python3"
386396
},
@@ -394,7 +404,7 @@
394404
"name": "python",
395405
"nbconvert_exporter": "python",
396406
"pygments_lexer": "ipython3",
397-
"version": "3.6.3"
407+
"version": "3.6.2"
398408
},
399409
"notice": "Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the \"License\"). You may not use this file except in compliance with the License. A copy of the License is located at http://aws.amazon.com/apache2.0/ or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License."
400410
},

0 commit comments

Comments
 (0)