Commit Graph

253 Commits

Author SHA1 Message Date
Wojciech Zaremba
e4a77b381e More thresholds. 2016-05-30 19:20:36 -07:00
Greg Brockman
8a535ca6f2 Switch to a global PRNG for action/observation spaces (#144)
cf 58e6aa95e5 (commitcomment-17669277)
2016-05-30 18:07:59 -07:00
Greg Brockman
5bb2337585 Add summaries for box2d environments 2016-05-30 16:48:09 -07:00
Greg Brockman
3328144465 Support disabling videos by passing video_callable=False (#140)
* Support disabling videos by passing video_callable=False

* monitor.py: Flush after closing video recorder

This ensures that the last video recorded ends up
in the manifest
2016-05-29 13:56:38 -07:00
Greg Brockman
4d11ccbb1a Make nondeterministic into a public property 2016-05-29 09:34:36 -07:00
Greg Brockman
fa94d30156 Fix other nondetermistic -> nondeterministic 2016-05-29 09:26:52 -07:00
Greg Brockman
8cbcc69816 Fix argument to env registration 2016-05-29 09:11:49 -07:00
Greg Brockman
58e6aa95e5 [WIP] add support for seeding environments (#135)
* Make environments seedable

* Fix monitor bugs

- Set monitor_id before setting the infix. This was a bug that would yield incorrect results with multiple monitors.
- Remove extra pid from stats recorder filename. This should be purely cosmetic.

* Start uploading seeds in episode_batch

* Fix _bigint_from_bytes for python3

* Set seed explicitly in random_agent

* Pass through seed argument

* Also pass through random state to spaces

* Pass random state into the observation/action spaces

* Make all _seed methods return the list of used seeds

* Switch over to np.random where possible

* Start hashing seeds, and also seed doom engine

* Fixup seeding determinism in many cases

* Seed before loading the ROM

* Make seeding more Python3 friendly

* Make the MuJoCo skipping a bit more forgiving

* Remove debugging PDB calls

* Make setInt argument into raw bytes

* Validate and upload seeds

* Skip box2d

* Make seeds smaller, and change representation of seeds in upload

* Handle long seeds

* Fix RandomAgent example to be deterministic

* Handle integer types correctly in Python2 and Python3

* Try caching pip

* Try adding swap

* Add df and free calls

* Bump swap

* Bump swap size

* Try setting overcommit

* Try other sysctls

* Try fixing overcommit

* Try just setting overcommit_memory=1

* Add explanatory comment

* Add what's new section to readme

* BUG: Mark ElevatorAction-ram-v0 as non-deterministic for now

* Document seed

* Move nondetermistic check into spec
2016-05-29 09:07:09 -07:00
rafaelcp
2e26518b4f Fixes tar file generation for upload on Windows (#129)
* Fixes tar file generation for upload on Windows

The temp file cannot be added to the tar while open on Windows.

* Update api.py

* Rewritten with try..finally

* Fix indent.
2016-05-27 23:52:27 -07:00
Greg Brockman
56ac98a841 Update name in _open_monitors 2016-05-27 20:00:57 -07:00
Greg Brockman
8376580c85 Improve closer implementation and docstrings (#126)
* Improve auto close implementation

- Register all envs at initialization time, not just ones created via make
- Simplify names and add more documentation on interface
- Move closer instances into the relevant modules

review-requested: @jietang

* Close environments in the tests

This isn't strictly needed, but means there are fewer Doom
subprocesses hanging around while the tests run.

* Use 4 space indent in comment

* Improve docstrings in core

* Don't pass through args to __new__

The __init__ method gets called once __new__ returns,
so these arguments are either ignored (Python 2) or
result in an error (Python 3). The __init__ method
automatically gets called with the correct arguments.

* Fixup comments
2016-05-27 12:16:35 -07:00
Jie Tang
eb8a9baaa3 Use v0 instead of v1, add experimental tag, return scalar reward 2016-05-27 00:44:17 -07:00
lmj
e186dceda6 Add HumanoidStandup-v0 env (PR #125) 2016-05-27 00:43:57 -07:00
Jie Tang
eab981953e Really skip mujoco tests on external PRs 2016-05-27 00:26:53 -07:00
Greg Brockman
40997b9118 atomic_write.py: Handle missing destination file on Windows 2016-05-26 21:49:29 -07:00
Greg Brockman
a0d02882c2 atomic_write: Support Windows better 2016-05-26 20:50:32 -07:00
Greg Brockman
28c9d37a18 Tweak RandomAgent comment 2016-05-26 13:44:14 -07:00
Oleg Klimov
b867be4001 LunarLander, BipedalWalker now count energy spent 2016-05-26 11:44:29 -07:00
Oleg Klimov
fa99cb9435 Car racing (#117)
* CarRacing-v0 new box2d environment
2016-05-26 11:39:57 -07:00
Jie Tang
73fc7fb42c Skip mujoco env tests during CI on PRs 2016-05-26 11:33:14 -07:00
Jie Tang
5d9a4bbf10 Update README with note about Python3 on OSX 2016-05-26 11:25:28 -07:00
Jie Tang
7d72afd2f0 Fix crash bug in DoomDeathmatchEnv 2016-05-25 18:41:46 -07:00
Oleg Klimov
17dd787c0b Fix for #114 (#118) 2016-05-25 01:16:15 -07:00
John Schulman
df515de07d more reward thresholds 2016-05-24 17:58:17 -07:00
Wojciech Zaremba
2853521609 Adds several reward thresholds. 2016-05-24 16:45:09 -07:00
Jie Tang
c47c325276 Bump doom_py version 2016-05-24 14:10:52 -07:00
Dominik
a50113a3a2 Handle draw in go env (#97) 2016-05-23 15:51:57 -07:00
Jie Tang
4a4b56171c Merge PR #113: Replace StrictVersion by LooseVersion 2016-05-23 15:37:47 -07:00
Jie Tang
88d71976bf Merge branch 'MarCnu_StrictLooseVersion' of https://github.com/MarCnu/gym into MarCnu-MarCnu_StrictLooseVersion 2016-05-23 15:34:19 -07:00
Jie Tang
d620273304 Adding some requirements to README.rst 2016-05-23 15:31:23 -07:00
Jie Tang
48c689efea Fix action space warning (fixes #108) 2016-05-23 10:59:42 -07:00
Jie Tang
c77a90ebd8 Build on 3.4 (travis doesn't seem to support libboost-python3.5) 2016-05-23 10:55:17 -07:00
Jie Tang
69d1115861 Fix human rendering for doom as well 2016-05-20 13:55:08 -07:00
MarCnu
9260271bef Replace StrictVersion by LooseVersion
Replaces the parsing function for the version comparison, to allow non standard versions. Remains unchanged for standard versions. http://epydoc.sourceforge.net/stdlib/distutils.version.LooseVersion-class.html
2016-05-20 17:40:17 +01:00
Jie Tang
bbc0d71ebe Release reference to viewer 2016-05-19 20:39:46 -07:00
Jie Tang
c1aa6a1123 Add python3-dev to travis build 2016-05-19 20:39:46 -07:00
Jie Tang
3eb58ffcfb Fix exception name with new vizdoom 2016-05-19 20:39:46 -07:00
Jie Tang
a48e6a0188 Bump doom_py version 2016-05-19 20:39:46 -07:00
Jie Tang
53db26a2d3 Bump doom_py version 2016-05-19 20:39:46 -07:00
Jie Tang
5181b7e44d Bump doom_py version 2016-05-19 20:39:46 -07:00
Jie Tang
93ef47a91b fix .travis.yml for Doom 2016-05-19 20:39:46 -07:00
Jie Tang
a3a24fb5be Specify version number for doom_py 2016-05-19 20:39:45 -07:00
Jie Tang
0b2b41cc57 Fix typo (doom-py -> doom_py) 2016-05-19 20:39:45 -07:00
Jie Tang
183e3bb335 Make DoomEnvs ezpickle-able 2016-05-19 20:39:45 -07:00
Jie Tang
4950a7e061 Add Doom envs (group key doom) 2016-05-19 20:39:45 -07:00
Jie Tang
2d45775e38 Fix broken registration test to handle new DeprecatedEnv error 2016-05-18 17:56:51 -07:00
Jie Tang
90979cf11f Parse and save env_name in EnvSpec 2016-05-18 17:56:51 -07:00
Jie Tang
edaf643c57 Remove deprecated env file, report different error for deprecated envs 2016-05-18 17:56:51 -07:00
Jie Tang
75c49eb2f3 Fix mujoco for PRs on the openai repo 2016-05-18 17:32:53 -07:00
Jie Tang
a6b5d7aa36 Fix registration test 2016-05-18 16:20:12 -07:00