Skip to content

chapter4 gamblers_problem, showing multiple best actions #158

@itschenxi

Description

@itschenxi

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions