rlightning.buffer.utils.preprocessors¶
Preprocessors for transforming observations and actions.
- class rlightning.buffer.utils.preprocessors.BoxFlattenPreprocessor(space: MockModule('gymnasium.Space'))[source]¶
Bases:
PreprocessorFlatten Box observations into 1D vectors.
- class rlightning.buffer.utils.preprocessors.DiscretePreprocessor(space: MockModule('gymnasium.Space'))[source]¶
Bases:
PreprocessorOne-hot encoder for discrete observations.
- class rlightning.buffer.utils.preprocessors.NonPreprocessor(space: MockModule('gymnasium.Space'))[source]¶
Bases:
PreprocessorNo-op preprocessor that returns input unchanged.
- class rlightning.buffer.utils.preprocessors.Preprocessor(space: MockModule('gymnasium.Space'))[source]¶
Bases:
ABCTransform raw data into vectorized representations.
- rlightning.buffer.utils.preprocessors.default_obs_preprocessor(obs_seq: List[Any]) List[Any][source]¶
Return observations unchanged.
- rlightning.buffer.utils.preprocessors.default_reward_preprocessor(rew_seq: List[Any]) List[Any][source]¶
Return rewards unchanged.
- rlightning.buffer.utils.preprocessors.get_preprocessor_cls(space: MockModule('gymnasium.Space')) Type[Preprocessor][source]¶
Select an appropriate preprocessor class based on space type.