Skip to content

Commit 5a8c9b2

Browse files
authored
Merge pull request aws#111 from awslabs/xgboost-updates
fixing the us-east-2 and eu-west-1 container typos
2 parents 8be9c69 + f1df35d commit 5a8c9b2

File tree

4 files changed

+62
-26
lines changed

4 files changed

+62
-26
lines changed

advanced_functionality/handling_kms_encrypted_data/handling_kms_encrypted_data.ipynb

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"cell_type": "code",
5151
"execution_count": null,
5252
"metadata": {
53+
"collapsed": true,
5354
"isConfigCell": true
5455
},
5556
"outputs": [],
@@ -92,7 +93,9 @@
9293
{
9394
"cell_type": "code",
9495
"execution_count": null,
95-
"metadata": {},
96+
"metadata": {
97+
"collapsed": true
98+
},
9699
"outputs": [],
97100
"source": [
98101
"!conda install -y -c conda-forge scikit-learn"
@@ -186,7 +189,9 @@
186189
{
187190
"cell_type": "code",
188191
"execution_count": null,
189-
"metadata": {},
192+
"metadata": {
193+
"collapsed": true
194+
},
190195
"outputs": [],
191196
"source": [
192197
"s3 = boto3.client('s3')\n",
@@ -235,15 +240,17 @@
235240
"source": [
236241
"containers = {'us-west-2': '433757028032.dkr.ecr.us-west-2.amazonaws.com/xgboost:latest',\n",
237242
" 'us-east-1': '811284229777.dkr.ecr.us-east-1.amazonaws.com/xgboost:latest',\n",
238-
" 'us-east-2': '825641698319.dkr.ecr.us-east-1.amazonaws.com/xgboost:latest',\n",
239-
" 'eu-west-1': '685385470294.dkr.ecr.us-east-1.amazonaws.com/xgboost:latest'}\n",
243+
" 'us-east-2': '825641698319.dkr.ecr.us-east-2.amazonaws.com/xgboost:latest',\n",
244+
" 'eu-west-1': '685385470294.dkr.ecr.eu-west-1.amazonaws.com/xgboost:latest'}\n",
240245
"container = containers[boto3.Session().region_name]"
241246
]
242247
},
243248
{
244249
"cell_type": "code",
245250
"execution_count": null,
246-
"metadata": {},
251+
"metadata": {
252+
"collapsed": true
253+
},
247254
"outputs": [],
248255
"source": [
249256
"%%time\n",
@@ -336,7 +343,9 @@
336343
{
337344
"cell_type": "code",
338345
"execution_count": null,
339-
"metadata": {},
346+
"metadata": {
347+
"collapsed": true
348+
},
340349
"outputs": [],
341350
"source": [
342351
"%%time\n",
@@ -375,7 +384,9 @@
375384
{
376385
"cell_type": "code",
377386
"execution_count": null,
378-
"metadata": {},
387+
"metadata": {
388+
"collapsed": true
389+
},
379390
"outputs": [],
380391
"source": [
381392
"from time import gmtime, strftime\n",
@@ -405,7 +416,9 @@
405416
{
406417
"cell_type": "code",
407418
"execution_count": null,
408-
"metadata": {},
419+
"metadata": {
420+
"collapsed": true
421+
},
409422
"outputs": [],
410423
"source": [
411424
"%%time\n",
@@ -495,7 +508,9 @@
495508
{
496509
"cell_type": "code",
497510
"execution_count": null,
498-
"metadata": {},
511+
"metadata": {
512+
"collapsed": true
513+
},
499514
"outputs": [],
500515
"source": [
501516
"%%time\n",
@@ -527,7 +542,9 @@
527542
{
528543
"cell_type": "code",
529544
"execution_count": null,
530-
"metadata": {},
545+
"metadata": {
546+
"collapsed": true
547+
},
531548
"outputs": [],
532549
"source": [
533550
"#client.delete_endpoint(EndpointName=endpoint_name)"
@@ -536,7 +553,7 @@
536553
],
537554
"metadata": {
538555
"kernelspec": {
539-
"display_name": "Environment (conda_python3)",
556+
"display_name": "conda_python3",
540557
"language": "python",
541558
"name": "conda_python3"
542559
},

advanced_functionality/xgboost_bring_your_own_model/xgboost_bring_your_own_model.ipynb

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"cell_type": "code",
4545
"execution_count": null,
4646
"metadata": {
47+
"collapsed": true,
4748
"isConfigCell": true
4849
},
4950
"outputs": [],
@@ -81,7 +82,9 @@
8182
{
8283
"cell_type": "code",
8384
"execution_count": null,
84-
"metadata": {},
85+
"metadata": {
86+
"collapsed": true
87+
},
8588
"outputs": [],
8689
"source": [
8790
"!conda install -y -c conda-forge xgboost"
@@ -97,7 +100,9 @@
97100
{
98101
"cell_type": "code",
99102
"execution_count": null,
100-
"metadata": {},
103+
"metadata": {
104+
"collapsed": true
105+
},
101106
"outputs": [],
102107
"source": [
103108
"%%time\n",
@@ -120,7 +125,9 @@
120125
{
121126
"cell_type": "code",
122127
"execution_count": null,
123-
"metadata": {},
128+
"metadata": {
129+
"collapsed": true
130+
},
124131
"outputs": [],
125132
"source": [
126133
"%%time\n",
@@ -208,7 +215,9 @@
208215
{
209216
"cell_type": "code",
210217
"execution_count": null,
211-
"metadata": {},
218+
"metadata": {
219+
"collapsed": true
220+
},
212221
"outputs": [],
213222
"source": [
214223
"!tar czvf model.tar.gz $model_file_name"
@@ -254,15 +263,17 @@
254263
"source": [
255264
"containers = {'us-west-2': '433757028032.dkr.ecr.us-west-2.amazonaws.com/xgboost:latest',\n",
256265
" 'us-east-1': '811284229777.dkr.ecr.us-east-1.amazonaws.com/xgboost:latest',\n",
257-
" 'us-east-2': '825641698319.dkr.ecr.us-east-1.amazonaws.com/xgboost:latest',\n",
258-
" 'eu-west-1': '685385470294.dkr.ecr.us-east-1.amazonaws.com/xgboost:latest'}\n",
266+
" 'us-east-2': '825641698319.dkr.ecr.us-east-2.amazonaws.com/xgboost:latest',\n",
267+
" 'eu-west-1': '685385470294.dkr.ecr.eu-west-1.amazonaws.com/xgboost:latest'}\n",
259268
"container = containers[boto3.Session().region_name]"
260269
]
261270
},
262271
{
263272
"cell_type": "code",
264273
"execution_count": null,
265-
"metadata": {},
274+
"metadata": {
275+
"collapsed": true
276+
},
266277
"outputs": [],
267278
"source": [
268279
"%%time\n",
@@ -299,7 +310,9 @@
299310
{
300311
"cell_type": "code",
301312
"execution_count": null,
302-
"metadata": {},
313+
"metadata": {
314+
"collapsed": true
315+
},
303316
"outputs": [],
304317
"source": [
305318
"from time import gmtime, strftime\n",
@@ -329,7 +342,9 @@
329342
{
330343
"cell_type": "code",
331344
"execution_count": null,
332-
"metadata": {},
345+
"metadata": {
346+
"collapsed": true
347+
},
333348
"outputs": [],
334349
"source": [
335350
"%%time\n",
@@ -400,7 +415,9 @@
400415
{
401416
"cell_type": "code",
402417
"execution_count": null,
403-
"metadata": {},
418+
"metadata": {
419+
"collapsed": true
420+
},
404421
"outputs": [],
405422
"source": [
406423
"%%time\n",
@@ -430,7 +447,9 @@
430447
{
431448
"cell_type": "code",
432449
"execution_count": null,
433-
"metadata": {},
450+
"metadata": {
451+
"collapsed": true
452+
},
434453
"outputs": [],
435454
"source": [
436455
"floatArr = np.array(json.loads(result))\n",

introduction_to_amazon_algorithms/xgboost_abalone/xgboost_abalone.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@
191191
"source": [
192192
"containers = {'us-west-2': '433757028032.dkr.ecr.us-west-2.amazonaws.com/xgboost:latest',\n",
193193
" 'us-east-1': '811284229777.dkr.ecr.us-east-1.amazonaws.com/xgboost:latest',\n",
194-
" 'us-east-2': '825641698319.dkr.ecr.us-east-1.amazonaws.com/xgboost:latest',\n",
195-
" 'eu-west-1': '685385470294.dkr.ecr.us-east-1.amazonaws.com/xgboost:latest'}\n",
194+
" 'us-east-2': '825641698319.dkr.ecr.us-east-2.amazonaws.com/xgboost:latest',\n",
195+
" 'eu-west-1': '685385470294.dkr.ecr.eu-west-1.amazonaws.com/xgboost:latest'}\n",
196196
"container = containers[boto3.Session().region_name]"
197197
]
198198
},

introduction_to_amazon_algorithms/xgboost_mnist/xgboost_mnist.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@
215215
"source": [
216216
"containers = {'us-west-2': '433757028032.dkr.ecr.us-west-2.amazonaws.com/xgboost:latest',\n",
217217
" 'us-east-1': '811284229777.dkr.ecr.us-east-1.amazonaws.com/xgboost:latest',\n",
218-
" 'us-east-2': '825641698319.dkr.ecr.us-east-1.amazonaws.com/xgboost:latest',\n",
219-
" 'eu-west-1': '685385470294.dkr.ecr.us-east-1.amazonaws.com/xgboost:latest'}\n",
218+
" 'us-east-2': '825641698319.dkr.ecr.us-east-2.amazonaws.com/xgboost:latest',\n",
219+
" 'eu-west-1': '685385470294.dkr.ecr.eu-west-1.amazonaws.com/xgboost:latest'}\n",
220220
"container = containers[boto3.Session().region_name]"
221221
]
222222
},

0 commit comments

Comments
 (0)