Commit Graph

8 Commits

Author SHA1 Message Date
Christian Clauss
bb81e141ea Blacken the codebase (#2265) 2021-07-28 20:26:34 -04:00
Tristan Deleu
58401db97e Allow custom spaces in VectorEnv (#2038)
* Allow custom observation spaces in VectorEnv

* Replace np.copy by deepcopy in reset of SyncVectorEnv

* Add tests for VectorEnv with custom spaces

* Add tests for shared memory and batches of custom spaces

* Remove unused import in VectorEnv test

* Add warning note in the Space class for custom spaces
2020-09-21 13:38:51 -07:00
Jonathan J Hunt
821841c1a1 Lazily seed np rng (#1913)
* Lazily seed np rng

* Fix missing return in np random
2020-05-29 14:11:39 -07:00
Sridhar Thiagarajan
5c11d19937 Update spaces.py method definition (#1579)
* Updated spaces.py method description

No longer sampling from uniform distribution always, changing distribution

* update space.py sampling method description
2019-07-12 14:32:41 -07:00
Edouard Leurent
e0e14acc45 Use utils.seeding in spaces.space (#1473)
The "strong random seed" defined in utils.seeding and used in environments
cannot be used to seed the action spaces (np.random.RandomState only
supports uint32 seeds).

For consistency, the same seeding procedure should be used everywhere.
2019-05-24 15:57:29 -07:00
Xingdong Zuo
13298ae1e1 Update space.py 2019-03-25 00:46:14 +01:00
Christopher Hesse
5eacc50bf4 have multi-discrete use same dtype as discrete, fixes #1204 (#1400) 2019-03-23 14:49:46 -07:00
Xingdong Zuo
6497c9f1c6 Delete prng.py (#1196)
* Delete prng.py

Since it seems like this seeding function is rarely used.

* Update __init__.py

* Update kellycoinflip.py

* Update core.py

* Update box.py

* Update discrete.py

* Update multi_binary.py

* Update multi_discrete.py

* Update test_determinism.py

* Update test_determinism.py

* Update test_determinism.py

* Update core.py

* Update box.py

* Update test_determinism.py

* Update core.py

* Update box.py

* Update discrete.py

* Update multi_binary.py

* Update multi_discrete.py

* Update dict_space.py

* Update tuple_space.py

* Update core.py

* Create space.py

* Update __init__.py

* Update __init__.py

* Update box.py

* Update dict_space.py

* Update discrete.py

* Update dict_space.py

* Update multi_binary.py

* Update multi_discrete.py

* Update tuple_space.py

* Update discrete.py

* Update box.py

* Update dict_space.py

* Update multi_binary.py

* Update multi_discrete.py

* Update tuple_space.py

* Update multi_discrete.py

* Update multi_binary.py

* Update dict_space.py

* Update box.py

* Update test_determinism.py

* Update kellycoinflip.py

* Update space.py
2019-01-30 13:39:55 -08:00