mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-19 13:32:03 +00:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user