Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update test_reviews #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Project/SageMaker Project.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1033,15 +1033,15 @@
" # Read in the review and convert to 'utf-8' for transmission via HTTP\n",
" review_input = review.read().encode('utf-8')\n",
" # Send the review to the predictor and store the results\n",
" results.append(int(predictor.predict(review_input)))\n",
" results.append(float(predictor.predict(review_input)))\n",
" \n",
" # Sending reviews to our endpoint one at a time takes a while so we\n",
" # only send a small number of reviews\n",
" files_read += 1\n",
" if files_read == stop:\n",
" break\n",
" \n",
" return ground, results"
" return ground, results\n"
]
},
{
Expand Down Expand Up @@ -1253,9 +1253,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "conda_pytorch_p36",
"display_name": "Python 3",
"language": "python",
"name": "conda_pytorch_p36"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -1267,7 +1267,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.6.3"
}
},
"nbformat": 4,
Expand Down