Skip to content

Commit

Permalink
Minor fix: sync sample policy with the solution
Browse files Browse the repository at this point in the history
  • Loading branch information
ByzanTine committed Jan 28, 2018
1 parent fa95c7e commit 9454010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MC/MC Prediction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
" A policy that sticks if the player score is > 20 and hits otherwise.\n",
" \"\"\"\n",
" score, dealer_score, usable_ace = observation\n",
" return np.array([1.0, 0.0]) if score >= 20 else np.array([0.0, 1.0])"
" return 0 if score >= 20 else 1"
]
},
{
Expand Down

0 comments on commit 9454010

Please sign in to comment.