mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-07-30 21:34:30 +00:00
Add a OneOf space for exclusive unions (#812)
Co-authored-by: pseudo-rnd-thoughts <mark.m.towers@gmail.com>
This commit is contained in:
committed by
GitHub
parent
fd4ae52045
commit
2b2e853536
@@ -66,7 +66,8 @@ Often environment spaces require joining fundamental spaces together for vectori
|
||||
* :class:`Dict` - Supports a dictionary of keys and subspaces, used for a fixed number of unordered spaces
|
||||
* :class:`Tuple` - Supports a tuple of subspaces, used for multiple for a fixed number of ordered spaces
|
||||
* :class:`Sequence` - Supports a variable number of instances of a single subspace, used for entities spaces or selecting a variable number of actions
|
||||
* :py:class:`Graph` - Supports graph based actions or observations with discrete or continuous nodes and edge values.
|
||||
* :class:`Graph` - Supports graph based actions or observations with discrete or continuous nodes and edge values
|
||||
* :class:`OneOf` - Supports optional action spaces such that an action can be one of N possible subspaces
|
||||
```
|
||||
|
||||
## Utility functions
|
||||
|
@@ -21,4 +21,9 @@
|
||||
|
||||
.. automethod:: gymnasium.spaces.Graph.sample
|
||||
.. automethod:: gymnasium.spaces.Graph.seed
|
||||
|
||||
.. autoclass:: gymnasium.spaces.OneOf
|
||||
|
||||
.. automethod:: gymnasium.spaces.OneOf.sample
|
||||
.. automethod:: gymnasium.spaces.OneOf.seed
|
||||
```
|
||||
|
Reference in New Issue
Block a user