Skip to content

Instantly share code, notes, and snippets.

@qgallouedec
Last active May 9, 2020 19:27
Show Gist options
  • Select an option

  • Save qgallouedec/0b9312dd0d66b05aeacf2ad916489e71 to your computer and use it in GitHub Desktop.

Select an option

Save qgallouedec/0b9312dd0d66b05aeacf2ad916489e71 to your computer and use it in GitHub Desktop.
for i_episode in range(nb_episodes):
# HERE : THE CODE TO
# initilize episode and loop until the game is over
# ...
# improve the policy after each transition
# ...
# if episode ends with a reward
if reward:
# decrease epsilon
epsilon *= 0.98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment