OneHotPreProcessor¶
-
class
maze.core.wrappers.observation_preprocessing.preprocessors.one_hot.
OneHotPreProcessor
(observation_space: gym.spaces.Space, **kwargs)¶ An one-hot encoding pre-processor for categorical features.
-
process
(observation: numpy.ndarray) → numpy.ndarray¶ (overrides
PreProcessor
)- implementation of
PreProcessor
interface
-
processed_shape
() → Tuple[int, …]¶ (overrides
PreProcessor
)- implementation of
PreProcessor
interface
-
processed_space
() → gym.spaces.Box¶ (overrides
PreProcessor
)- implementation of
PreProcessor
interface
-