Commit Graph

16 Commits

Author SHA1 Message Date
Rohan138
ae018346cb Add Dict helper methods (#2417) 2021-09-22 00:19:37 -04:00
RaghuSpaceRajan
c571b0d853 Make Tuple and Dicts be seedable with lists and dicts of seeds + make the seed in default initialization controllable (#1774)
* Make the seed in default initialization controllable

Since seed() is being called in default initialization of Space, it should be controllable for reproducibility.

* Updated derived classes of Space to have their seeds controllable at initialization.

* Allow Tuple's spaces to each have their own seed

* Added dict based seeding for Dict space; test cases for Tuple and Dict seeding

* Update discrete.py

* Update test_spaces.py

* Add seed to __init__()

* blacked

* Fix black

* Fix failing tests
2021-09-13 14:08:01 -04:00
Xuehai Pan
bb8e8063e9 Fix seed method for spaces.Tuple and spaces.Dict (#2365)
* Fix seed method for Tuple and Dict

* Improve stochasticity

* Update test cases for seed method

* Update test cases for seed method

Update test cases for seed method

Update test cases for seed method
2021-09-02 10:15:34 -04:00
jfpettit
cf0cf17548 add __setitem__ method to Dict action space (#2377) 2021-09-01 12:09:20 -04:00
Kai Fricke
3d2bbc5106 Make Dict a Mapping (#2249) 2021-07-29 16:29:10 -04:00
J K Terry
78d2b512d8 redo black (#2272) 2021-07-29 15:39:42 -04:00
Justin Terry
e9d2c41f2b redo black 2021-07-29 12:42:48 -04:00
Christian Clauss
bb81e141ea Blacken the codebase (#2265) 2021-07-28 20:26:34 -04:00
NotNANtoN
96d85029a7 Made observation spaces Dict iterable (#1793) 2020-07-10 16:39:21 -07:00
DanielPBak
e37717ce98 Changed repr of Dict space so that it supports non-string keys. (#1658) 2019-10-25 14:28:19 -07:00
pzhokhov
9a7f10ece1 fix accidental seed function overriding in Space (#1506)
* fix accidental seed function overriding in Space

* default seed to None in spaces
2019-05-24 18:16:07 -07:00
Xingdong Zuo
e3389e0839 Update dict.py (#1435) 2019-04-19 14:19:07 -07:00
Peter Zhokhov
b2fe239cee fix gym.Space -> Space in dict.py 2019-03-25 10:20:49 -07:00
Xingdong Zuo
3100f4da61 Update dict.py 2019-03-25 02:06:55 +01:00
Xingdong Zuo
8d3c4ad6cc Update dict.py 2019-03-25 01:05:15 +01:00
Xingdong Zuo
f5d571a16d Update and rename dict_space.py to dict.py 2019-03-25 00:41:18 +01:00