We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 896fd1c commit 17c8518Copy full SHA for 17c8518
sagemaker-spark/pyspark_mnist/xgboost_mnist.ipynb
@@ -87,8 +87,10 @@
87
},
88
"outputs": [],
89
"source": [
90
- "# replace this with your own region, such as us-east-1\n",
91
- "region = 'us-east-1'\n",
+ "import boto3\n",
+ "\n",
92
+ "# use the region-specific sample data bucket\n",
93
+ "region = boto3.Session().region_name\n",
94
"trainingData = spark.read.format('libsvm')\\\n",
95
" .option('numFeatures', '784')\\\n",
96
" .option('vectorType', 'dense')\\\n",
0 commit comments