Skip to content

Commit

Permalink
code formatting change
Browse files Browse the repository at this point in the history
  • Loading branch information
haixiw committed Jun 16, 2022
1 parent 01041fb commit 11cdce8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
],
"source": [
"import sagemaker\n",
"\n",
"print(sagemaker.__version__)"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@
" for array in split_array:\n",
" predictions = \"\".join([predictions, xgb_predictor.predict(array).decode(\"utf-8\")])\n",
"\n",
" return predictions.split('\\n')[:-1]\n",
" return predictions.split(\"\\n\")[:-1]\n",
"\n",
"\n",
"predictions = predict(test_data.values[:, 1:])"
Expand Down Expand Up @@ -673,7 +673,7 @@
" for array in split_array:\n",
" predictions = \"\".join([predictions, xgb_predictor.predict(array).decode(\"utf-8\")])\n",
"\n",
" return predictions.split('\\n')[:-1]\n",
" return predictions.split(\"\\n\")[:-1]\n",
"\n",
"\n",
"predictions = optimized_predict(test_data.values[:, 1:])"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@
" for array in split_array:\n",
" predictions = \"\".join([predictions, xgb_predictor.predict(array).decode(\"utf-8\")])\n",
"\n",
" return predictions.split('\\n')[:-1]\n",
" return predictions.split(\"\\n\")[:-1]\n",
"\n",
"\n",
"predictions = predict(test_data.to_numpy()[:, 1:])"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4149,7 +4149,7 @@
"outputs": [],
"source": [
"# Parameters\n",
"kms_key = \"arn:aws:kms:us-west-2:000000000000:1234abcd-12ab-34cd-56ef-1234567890ab\"\n"
"kms_key = \"arn:aws:kms:us-west-2:000000000000:1234abcd-12ab-34cd-56ef-1234567890ab\""
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@
" for array in split_array:\n",
" predictions = \"\".join([predictions, xgb_predictor.predict(array).decode(\"utf-8\")])\n",
"\n",
" return predictions.split('\\n')[:-1]\n",
" return predictions.split(\"\\n\")[:-1]\n",
"\n",
"\n",
"predictions = predict(test_data.values[:, 1:])"
Expand Down Expand Up @@ -863,7 +863,7 @@
" for array in split_array:\n",
" predictions = \"\".join([predictions, xgb_predictor.predict(array).decode(\"utf-8\")])\n",
"\n",
" return predictions.split('\\n')[:-1]\n",
" return predictions.split(\"\\n\")[:-1]\n",
"\n",
"\n",
"predictions = optimized_predict(test_data.values[:, 1:])"
Expand Down

0 comments on commit 11cdce8

Please sign in to comment.