Skip to content

Commit 7aadcba

Browse files
authored
Remove absolute paths from MXNet / TF examples (aws#54)
1 parent b2a51ac commit 7aadcba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sagemaker-python-sdk/mxnet_mnist/mxnet_mnist.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"source": [
4343
"from sagemaker.mxnet import MXNet\n",
4444
"\n",
45-
"mnist_estimator = MXNet(entry_point='/home/ec2-user/sample-notebooks/sagemaker-python-sdk/mxnet_mnist/mnist.py',\n",
45+
"mnist_estimator = MXNet(entry_point='mnist.py',\n",
4646
" role=role,\n",
4747
" output_path=model_artifacts_location,\n",
4848
" code_location=custom_code_upload_location,\n",
@@ -115,7 +115,7 @@
115115
"outputs": [],
116116
"source": [
117117
"from IPython.display import HTML\n",
118-
"HTML(open(\"/home/ec2-user/sample-notebooks/sagemaker-python-sdk/mxnet_mnist/input.html\").read())"
118+
"HTML(open(\"input.html\").read())"
119119
]
120120
},
121121
{

sagemaker-python-sdk/tensorflow_iris_dnn_classifier_using_estimators/tensorflow_iris_dnn_classifier_using_estimators.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
"metadata": {},
159159
"outputs": [],
160160
"source": [
161-
"!cat \"/home/ec2-user/sample-notebooks/sagemaker-python-sdk/tensorflow_iris_dnn_classifier_using_estimators/iris_dnn_classifier.py\""
161+
"!cat \"iris_dnn_classifier.py\""
162162
]
163163
},
164164
{
@@ -289,7 +289,7 @@
289289
"source": [
290290
"from sagemaker.tensorflow import TensorFlow\n",
291291
"\n",
292-
"iris_estimator = TensorFlow(entry_point='/home/ec2-user/sample-notebooks/sagemaker-python-sdk/tensorflow_iris_dnn_classifier_using_estimators/iris_dnn_classifier.py',\n",
292+
"iris_estimator = TensorFlow(entry_point='iris_dnn_classifier.py',\n",
293293
" role=role,\n",
294294
" output_path=model_artifacts_location,\n",
295295
" code_location=custom_code_upload_location,\n",

0 commit comments

Comments
 (0)