Created
November 20, 2018 02:06
-
-
Save maxbrenner-ai/e4ee041b1cdf0b7819ef79bb16a8bce3 to your computer and use it in GitHub Desktop.
episode reset
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
def episode_reset(): | |
# First reset the state tracker | |
state_tracker.reset() | |
# Then pick an init user action | |
user_action = user.reset() | |
# Infuse with error | |
emc.infuse_error(user_action) | |
# And update state tracker | |
state_tracker.update_state_user(user_action) | |
# Finally, reset agent | |
dqn_agent.reset() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment