Skip to content

Commit dbdafe6

Browse files
authored
Fix TF DNN Iris example to use conda tensorflow 27 kernel by default, and MXNet code upload version (aws#66)
* Fix TF DNN Iris example to use conda tensorflow 36 kernel by default * Fix mxnet mnist code upload location * Use tf py2 kernel instead of py3 * Fix ipython metadata
1 parent 89353a0 commit dbdafe6

File tree

2 files changed

+11
-20
lines changed

2 files changed

+11
-20
lines changed

sagemaker-python-sdk/mxnet_mnist/mxnet_mnist.ipynb

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"from sagemaker import get_execution_role\n",
2626
"\n",
2727
"#Bucket location to save your custom code in tar.gz format.\n",
28-
"custom_code_upload_location = 's3://<bucket-name>/customcode/tensorflow_iris'\n",
28+
"custom_code_upload_location = 's3://<bucket-name>/customcode/mxnet'\n",
2929
"\n",
3030
"#Bucket location where results of model training are saved.\n",
3131
"model_artifacts_location = 's3://<bucket-name>/artifacts'\n",
@@ -47,9 +47,7 @@
4747
{
4848
"cell_type": "code",
4949
"execution_count": null,
50-
"metadata": {
51-
"collapsed": true
52-
},
50+
"metadata": {},
5351
"outputs": [],
5452
"source": [
5553
"!cat mnist.py"
@@ -112,7 +110,6 @@
112110
"cell_type": "code",
113111
"execution_count": null,
114112
"metadata": {
115-
"collapsed": true,
116113
"scrolled": true
117114
},
118115
"outputs": [],
@@ -141,9 +138,7 @@
141138
{
142139
"cell_type": "code",
143140
"execution_count": null,
144-
"metadata": {
145-
"collapsed": true
146-
},
141+
"metadata": {},
147142
"outputs": [],
148143
"source": [
149144
"%%time\n",
@@ -170,9 +165,7 @@
170165
{
171166
"cell_type": "code",
172167
"execution_count": null,
173-
"metadata": {
174-
"collapsed": true
175-
},
168+
"metadata": {},
176169
"outputs": [],
177170
"source": [
178171
"from IPython.display import HTML\n",
@@ -190,7 +183,6 @@
190183
"cell_type": "code",
191184
"execution_count": null,
192185
"metadata": {
193-
"collapsed": true,
194186
"scrolled": true
195187
},
196188
"outputs": [],
@@ -253,7 +245,6 @@
253245
}
254246
],
255247
"metadata": {
256-
"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.",
257248
"kernelspec": {
258249
"display_name": "Environment (conda_mxnet_p36)",
259250
"language": "python",
@@ -270,7 +261,8 @@
270261
"nbconvert_exporter": "python",
271262
"pygments_lexer": "ipython3",
272263
"version": "3.6.3"
273-
}
264+
},
265+
"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."
274266
},
275267
"nbformat": 4,
276268
"nbformat_minor": 2

sagemaker-python-sdk/tensorflow_iris_dnn_classifier_using_estimators/tensorflow_iris_dnn_classifier_using_estimators.ipynb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
"cell_type": "code",
9393
"execution_count": null,
9494
"metadata": {
95+
"collapsed": true,
9596
"isConfigCell": true
9697
},
9798
"outputs": [],
@@ -157,9 +158,7 @@
157158
{
158159
"cell_type": "code",
159160
"execution_count": null,
160-
"metadata": {
161-
"collapsed": true
162-
},
161+
"metadata": {},
163162
"outputs": [],
164163
"source": [
165164
"!cat \"iris_dnn_classifier.py\""
@@ -416,9 +415,9 @@
416415
],
417416
"metadata": {
418417
"kernelspec": {
419-
"display_name": "Python 2",
418+
"display_name": "Environment (conda_tensorflow_p27)",
420419
"language": "python",
421-
"name": "python2"
420+
"name": "conda_tensorflow_p27"
422421
},
423422
"language_info": {
424423
"codemirror_mode": {
@@ -430,7 +429,7 @@
430429
"name": "python",
431430
"nbconvert_exporter": "python",
432431
"pygments_lexer": "ipython2",
433-
"version": "2.7.10"
432+
"version": "2.7.11"
434433
},
435434
"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."
436435
},

0 commit comments

Comments
 (0)