Skip to content

Instantly share code, notes, and snippets.

@ikatsov
Created May 13, 2019 17:16
Show Gist options
  • Select an option

  • Save ikatsov/613476099b2359b7ec749ae89363ac37 to your computer and use it in GitHub Desktop.

Select an option

Save ikatsov/613476099b2359b7ec749ae89363ac37 to your computer and use it in GitHub Desktop.
policy_values = []
eps = np.linspace(0, 2/3, num = 10)
for e in eps:
policy = make_epsilon_greedy_policy(e)
policy_values.append( evaluate_policy_return(T, behavioral_policy, policy) )
plt.plot(eps, policy_values)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment