We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I suggest you make the following changes to chapter4 gamblers_problem to show multiple best actions:
x_axis = [] y_axis = [] ...... # line 63 max_values = np.where(np.round(action_returns[1:], 5)==np.amax(np.round(action_returns[1:], 5)))[0]+1 x_axis.extend([state]*len(max_values)) for i in max_values: y_axis.extend([actions[i]]) ...... plt.scatter(x_axis, y_axis)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I suggest you make the following changes to chapter4 gamblers_problem to show multiple best actions:
x_axis = []
y_axis = []
......
# line 63
max_values = np.where(np.round(action_returns[1:], 5)==np.amax(np.round(action_returns[1:], 5)))[0]+1
x_axis.extend([state]*len(max_values))
for i in max_values:
y_axis.extend([actions[i]])
......
plt.scatter(x_axis, y_axis)
The text was updated successfully, but these errors were encountered: