Made readout of seed possible in env (#889)

This commit is contained in:
Michael Panchenko
2024-02-26 13:00:18 +01:00
committed by GitHub
parent 9e83d5442c
commit b3f0361f91
11 changed files with 213 additions and 21 deletions

View File

@@ -54,6 +54,7 @@ title: Env
.. autoproperty:: gymnasium.Env.unwrapped
.. autoproperty:: gymnasium.Env.np_random
.. autoproperty:: gymnasium.Env.np_random_seed
```
## Implementing environments

View File

@@ -67,6 +67,7 @@ vector/utils
```{eval-rst}
.. autoproperty:: gymnasium.vector.VectorEnv.unwrapped
.. autoproperty:: gymnasium.vector.VectorEnv.np_random
.. autoproperty:: gymnasium.vector.VectorEnv.np_random_seed
```
## Making Vector Environments

View File

@@ -11,3 +11,10 @@
.. automethod:: gymnasium.vector.AsyncVectorEnv.get_attr
.. automethod:: gymnasium.vector.AsyncVectorEnv.set_attr
```
### Additional Methods
```{eval-rst}
.. autoproperty:: gymnasium.vector.VectorEnv.np_random
.. autoproperty:: gymnasium.vector.VectorEnv.np_random_seed
```

View File

@@ -11,3 +11,10 @@
.. automethod:: gymnasium.vector.SyncVectorEnv.get_attr
.. automethod:: gymnasium.vector.SyncVectorEnv.set_attr
```
### Additional Methods
```{eval-rst}
.. autoproperty:: gymnasium.vector.VectorEnv.np_random
.. autoproperty:: gymnasium.vector.VectorEnv.np_random_seed
```

View File

@@ -47,5 +47,6 @@ wrappers/reward_wrappers
.. autoproperty:: gymnasium.Wrapper.spec
.. autoproperty:: gymnasium.Wrapper.metadata
.. autoproperty:: gymnasium.Wrapper.np_random
.. autoproperty:: gymnasium.Wrapper.np_random_seed
.. autoproperty:: gymnasium.Wrapper.unwrapped
```