Skip to content

Commit 2aff732

Browse files
committed
fixing metadata
1 parent 4bc36bb commit 2aff732

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

sagemaker-python-sdk/mxnet_gluon_cifar10/cifar10.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,10 @@
237237
}
238238
],
239239
"metadata": {
240-
"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.",
241240
"kernelspec": {
242-
"display_name": "Python [conda env:mxnet_p27]",
241+
"display_name": "Environment (conda_mxnet_p27)",
243242
"language": "python",
244-
"name": "conda-env-mxnet_p27-py"
243+
"name": "conda_mxnet_p27"
245244
},
246245
"language_info": {
247246
"codemirror_mode": {
@@ -253,8 +252,9 @@
253252
"name": "python",
254253
"nbconvert_exporter": "python",
255254
"pygments_lexer": "ipython2",
256-
"version": "2.7.13"
257-
}
255+
"version": "2.7.11"
256+
},
257+
"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."
258258
},
259259
"nbformat": 4,
260260
"nbformat_minor": 2

sagemaker-python-sdk/mxnet_gluon_mnist/mnist_with_gluon.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,10 @@
204204
}
205205
],
206206
"metadata": {
207-
"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.",
208207
"kernelspec": {
209-
"display_name": "Python [conda env:mxnet_p27]",
208+
"display_name": "Environment (conda_mxnet_p27)",
210209
"language": "python",
211-
"name": "conda-env-mxnet_p27-py"
210+
"name": "conda_mxnet_p27"
212211
},
213212
"language_info": {
214213
"codemirror_mode": {
@@ -220,8 +219,9 @@
220219
"name": "python",
221220
"nbconvert_exporter": "python",
222221
"pygments_lexer": "ipython2",
223-
"version": "2.7.13"
224-
}
222+
"version": "2.7.11"
223+
},
224+
"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."
225225
},
226226
"nbformat": 4,
227227
"nbformat_minor": 2

sagemaker-python-sdk/tensorflow_iris_dnn_classifier_using_estimators/tensorflow_iris_dnn_classifier_using_estimators.ipynb

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
},
189189
"outputs": [],
190190
"source": [
191-
"def estimator(model_path):\n",
191+
"def estimator(model_path, hyperparameters):\n",
192192
" feature_columns = [tf.feature_column.numeric_column(INPUT_TENSOR_NAME, shape=[4])]\n",
193193
" return tf.estimator.DNNClassifier(feature_columns=feature_columns,\n",
194194
" hidden_units=[10, 20, 10],\n",
@@ -237,7 +237,7 @@
237237
},
238238
"outputs": [],
239239
"source": [
240-
"def train_input_fn(training_dir):\n",
240+
"def train_input_fn(training_dir, hyperparameters):\n",
241241
" training_set = tf.contrib.learn.datasets.base.load_csv_with_header(\n",
242242
" filename=os.path.join(training_dir, 'iris_training.csv'),\n",
243243
" target_dtype=np.int,\n",
@@ -267,7 +267,7 @@
267267
},
268268
"outputs": [],
269269
"source": [
270-
"def serving_input_receiver_fn():\n",
270+
"def serving_input_fn(hyperparameters):\n",
271271
" feature_spec = {INPUT_TENSOR_NAME: tf.FixedLenFeature(dtype=tf.float32, shape=[4])}\n",
272272
" return tf.estimator.export.build_parsing_serving_input_receiver_fn(feature_spec)()"
273273
]
@@ -407,16 +407,18 @@
407407
{
408408
"cell_type": "code",
409409
"execution_count": null,
410-
"metadata": {},
410+
"metadata": {
411+
"collapsed": true
412+
},
411413
"outputs": [],
412414
"source": []
413415
}
414416
],
415417
"metadata": {
416418
"kernelspec": {
417-
"display_name": "Environment (conda_tensorflow_p27)",
419+
"display_name": "Python 2",
418420
"language": "python",
419-
"name": "conda_tensorflow_p27"
421+
"name": "python2"
420422
},
421423
"language_info": {
422424
"codemirror_mode": {
@@ -428,7 +430,7 @@
428430
"name": "python",
429431
"nbconvert_exporter": "python",
430432
"pygments_lexer": "ipython2",
431-
"version": "2.7.14"
433+
"version": "2.7.10"
432434
},
433435
"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."
434436
},

0 commit comments

Comments
 (0)