gym env backward compatibility due to gym 0.9.6 breaking changes

This commit is contained in:
erwincoumans
2018-02-06 10:20:41 -08:00
parent ede8042c2c
commit 19231434c2
12 changed files with 78 additions and 39 deletions

View File

@@ -47,7 +47,7 @@ def main():
print(obs)
episode_rew = 0
while not done:
env.render()
env.render(mode='human')
act = policy.sample_action(obs, .1)
print("Action")
print(act)