google-deepmind / google-deepmind/dm_env

dm_env.specs.Array.sample() for specs

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.