ModuleSpace.sample#
- ModuleSpace.sample(normalized=False)[source]#
Randomly sample an element of this space.
Can be uniform or non-uniform sampling based on boundedness of space.
- Args:
mask: A mask used for sampling, expected
dtype=np.int8and see sample implementation for expected shape.- Returns:
A sampled actions from the space