Go from decorator to constructor syntax for Monitor; add note to What's New

This commit is contained in:
Jie Tang
2016-12-27 16:10:23 -08:00
committed by Tom Brown
parent cf77e19c84
commit 10f7e4ffb0
7 changed files with 56 additions and 52 deletions

View File

@@ -40,7 +40,7 @@ if __name__ == '__main__':
# will be namespaced). You can also dump to a tempdir if you'd
# like: tempfile.mkdtemp().
outdir = '/tmp/random-agent-results'
env = wrappers.Monitor(directory=outdir, force=True)(env)
env = wrappers.Monitor(env, directory=outdir, force=True)
env.seed(0)
agent = RandomAgent(env.action_space)