Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6e2497c

Browse files
authoredNov 27, 2017
Merge pull request aws#81 from awslabs/r-bash
Fixes for mvs
2 parents 6ef7c59 + f07f445 commit 6e2497c

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed
 

‎sagemaker-python-sdk/tensorflow_abalone_age_predictor_using_layers/tensorflow_abalone_age_predictor_using_layers.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"cell_type": "markdown",
9696
"metadata": {},
9797
"source": [
98-
"**sagemaker_session.upload_data** will upload the abalone dataset from your machine to a bucket named **sagemaker-{your aws account number}**, if you don't have this bucket yet, sagemaker_session will create it for you."
98+
"**sagemaker_session.upload_data** will upload the abalone dataset from your machine to a bucket named **sagemaker-{region}-{your aws account number}**, if you don't have this bucket yet, sagemaker_session will create it for you."
9999
]
100100
},
101101
{
@@ -136,7 +136,7 @@
136136
" return EstimatorSpec(mode, predictions, loss, train_op, eval_metric_ops)\n",
137137
"```\n",
138138
"\n",
139-
"The **`model_fn`** must accept three arguments:\n",
139+
"The **`model_fn`** requires three arguments:\n",
140140
"\n",
141141
"* **`features`**: A dict containing the features passed to the model via\n",
142142
" **`input_fn`**.\n",
@@ -149,7 +149,7 @@
149149
" mode, namely via a `train()` call.\n",
150150
" * **`EVAL`** The **`model_fn`** was invoked in\n",
151151
" evaluation mode, namely via an `evaluate()` call.\n",
152-
" * **`PREDICT`** The `model_fn` was invoked in\n",
152+
" * **`PREDICT`** The **`model_fn`** was invoked in\n",
153153
" predict mode, namely via a `predict()` call.\n",
154154
"\n",
155155
"**`model_fn`** may also accept a **`hyperparameters`** argument containing a dict of\n",
@@ -270,7 +270,7 @@
270270
" inputs=input_layer, units=10, activation=tf.nn.relu)\n",
271271
" ```\n",
272272
"\n",
273-
"* **`tf.nn.relu6`**. The following code creates a layer of `units` nodes fully\n",
273+
"* **`tf.nn.relu`**. The following code creates a layer of `units` nodes fully\n",
274274
" connected to the previous layer `hidden_layer` with a ReLU activation\n",
275275
" function:\n",
276276
"\n",
@@ -531,7 +531,7 @@
531531
"* deploy your script in a container with tensorflow installed\n",
532532
"* copy the data from the bucket to the container\n",
533533
"* instantiate the tf.estimator\n",
534-
"* train the estimator with 10 training steps\n",
534+
"* train the estimator with 100 training steps\n",
535535
"* save the estimator model"
536536
]
537537
},
@@ -637,4 +637,4 @@
637637
},
638638
"nbformat": 4,
639639
"nbformat_minor": 2
640-
}
640+
}

‎sagemaker-python-sdk/tensorflow_resnet_cifar10_with_tensorboard/tensorflow_resnet_cifar10_with_tensorboard.ipynb

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"source": [
3333
"import os\n",
3434
"import sagemaker\n",
35-
"import tensorflow\n",
3635
"from sagemaker import get_execution_role\n",
3736
"\n",
3837
"sagemaker_session = sagemaker.Session()\n",
@@ -83,7 +82,7 @@
8382
"cell_type": "markdown",
8483
"metadata": {},
8584
"source": [
86-
"**sagemaker_session.upload_data** will upload the CIFAR-10 dataset from your machine to a bucket named **sagemaker-{*your aws account number*}**, if you don't have this bucket yet, sagemaker_session will create it for you."
85+
"**sagemaker_session.upload_data** will upload the CIFAR-10 dataset from your machine to a bucket named **sagemaker-{region}-{*your aws account number*}**, if you don't have this bucket yet, sagemaker_session will create it for you."
8786
]
8887
},
8988
{
@@ -163,6 +162,14 @@
163162
"predictor = estimator.deploy(initial_instance_count=1, instance_type='ml.c4.xlarge')"
164163
]
165164
},
165+
{
166+
"cell_type": "markdown",
167+
"metadata": {},
168+
"source": [
169+
"# Prediction using the trained model\n",
170+
""
171+
]
172+
},
166173
{
167174
"cell_type": "markdown",
168175
"metadata": {},

0 commit comments

Comments
 (0)
Please sign in to comment.