Skip to content

Commit d42fa5d

Browse files
philarmourwinstonaws
authored andcommitted
fix parsing of line to List for single-line test label (aws#156)
1 parent 566d603 commit d42fa5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

introduction_to_amazon_algorithms/xgboost_abalone/xgboost_abalone.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@
462462
"result = result.decode(\"utf-8\")\n",
463463
"result = result.split(',')\n",
464464
"result = [math.ceil(float(i)) for i in result]\n",
465-
"label = payload.strip(' ')[0]\n",
465+
"label = payload.strip(' ').split()[0]\n",
466466
"print ('Label: ',label,'\\nPrediction: ', result[0])"
467467
]
468468
},

0 commit comments

Comments
 (0)