Created
October 27, 2019 23:13
-
-
Save msaroufim/5ef80342e15eeff58e7d85f5595965b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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