Skip to content

Commit b0ebd03

Browse files
committed
update comment and markdown on region and role
1 parent a325266 commit b0ebd03

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

sagemaker-spark/pyspark_mnist/xgboost_mnist.ipynb

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,17 @@
4242
"\n",
4343
"First, we load the MNIST dataset into a Spark Dataframe, which dataset is available in LibSVM format at\n",
4444
"\n",
45-
"s3://sagemaker-sample-data-[region, such as us-east-1]/spark/mnist/train/"
45+
"`s3://sagemaker-sample-data-[region]/spark/mnist/train/`\n",
46+
"\n",
47+
"where `[region]` is replaced with a supported AWS region, such as us-east-1"
4648
]
4749
},
4850
{
4951
"cell_type": "code",
5052
"execution_count": null,
51-
"metadata": {},
53+
"metadata": {
54+
"collapsed": true
55+
},
5256
"outputs": [],
5357
"source": [
5458
"from pyspark import SparkContext, SparkConf\n",
@@ -76,7 +80,9 @@
7680
{
7781
"cell_type": "code",
7882
"execution_count": null,
79-
"metadata": {},
83+
"metadata": {
84+
"collapsed": true
85+
},
8086
"outputs": [],
8187
"source": [
8288
"# replace this with your own region, such as us-east-1\n",
@@ -129,14 +135,15 @@
129135
{
130136
"cell_type": "code",
131137
"execution_count": null,
132-
"metadata": {},
138+
"metadata": {
139+
"collapsed": true
140+
},
133141
"outputs": [],
134142
"source": [
135143
"import random\n",
136144
"from sagemaker_pyspark import IAMRole, S3DataPath\n",
137145
"from sagemaker_pyspark.algorithms import XGBoostSageMakerEstimator\n",
138146
"\n",
139-
"# replace this with your role ARN\n",
140147
"xgboost_estimator = XGBoostSageMakerEstimator(\n",
141148
" sagemakerRole=IAMRole(role),\n",
142149
" trainingInstanceType='ml.c4.2xlarge',\n",
@@ -219,7 +226,9 @@
219226
{
220227
"cell_type": "code",
221228
"execution_count": null,
222-
"metadata": {},
229+
"metadata": {
230+
"collapsed": true
231+
},
223232
"outputs": [],
224233
"source": [
225234
"# Delete the endpoint\n",

0 commit comments

Comments
 (0)