google-deepmind / google-deepmind/dm_env
dm_env.specs.Array.sample() for specs
Open
- Dominant language
- Python
- Stars
- 407
- Forks
- 57
- PR merge metrics
- No merged PRs in 30d
Description
Would be useful to have a `sample()` function for the specs, like in [gym spaces](https://github.com/Farama-Foundation/Gymnasium/blob/3fda2072d6c1e76e76127eabb080862b7afa6e9a/gymnasium/spaces/space.py#L92). I can raise a PR if this is fine by you guys.
Contributor guide
Assessment
This issue has not been assessed yet.