mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-17 20:39:12 +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
@@ -534,6 +534,7 @@ SPACE_KWARGS = [
|
||||
{"spaces": {"a": Discrete(3), "b": Discrete(2)}}, # Dict
|
||||
{"node_space": Discrete(4), "edge_space": Discrete(3)}, # Graph
|
||||
{"space": Discrete(4)}, # Sequence
|
||||
{"spaces": (Discrete(3), Discrete(5))}, # OneOf
|
||||
]
|
||||
assert len(SPACE_CLS) == len(SPACE_KWARGS)
|
||||
|
||||
|
Reference in New Issue
Block a user