Make agent examples compatible with python 3 (#150)

* make cem agen exaple compatible with python 2 and 3

* make the keyboard_agent example compatible with python 2 and 3

Changing `xrange` to `range` should not impact performance unless we're
generating millions of elements (currently only 1000).

* remove algorithm_id from the upload call
This commit is contained in:
Maciek
2016-06-01 16:15:18 +02:00
committed by Greg Brockman
parent d167a391a4
commit 43992f4752
4 changed files with 20 additions and 12 deletions

View File

@@ -55,4 +55,4 @@ if __name__ == '__main__':
# Upload to the scoreboard. We could also do this from another
# process if we wanted.
logger.info("Successfully ran RandomAgent. Now trying to upload results to the scoreboard. If it breaks, you can always just try re-uploading the same results.")
gym.upload(outdir, algorithm_id='random')
gym.upload(outdir)