Created
April 8, 2018 15:38
-
-
Save tristansokol/cf767409e9a36f83803f672cd864b270 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
while True: | |
# ... | |
rew, new_ep = move(env, 100) | |
if not new_ep and rew <= 0: | |
print('backtracking due to negative reward: %f' % rew) | |
_, new_ep = move(env, 70, left=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment