Skip to content

Instantly share code, notes, and snippets.

@msaroufim
Created October 27, 2019 23:13
Show Gist options
  • Save msaroufim/5ef80342e15eeff58e7d85f5595965b7 to your computer and use it in GitHub Desktop.
Save msaroufim/5ef80342e15eeff58e7d85f5595965b7 to your computer and use it in GitHub Desktop.
# Environment setup
env = MountainCar()
function episode!(env, π = RandomPolicy())
ep = Episode(env, π)
for (s, a, r, s′) in ep
gui(plot(env))
end
ep.total_reward, ep.niter
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment