Processor
- class posggym.agents.utils.processors.Processor(input_space: Space)
Abstract class for processing inputs.
Transforms input and input space from one form into another. Inputs can be, for example observations or actions.
- abstract __call__(input: Any) Any
Process the input.
- abstract unprocess(processed_input: Any) Any
Unprocess processed input.
- abstract get_processed_space() Space
Get the processed space.
Available Processors
- class posggym.agents.utils.processors.IdentityProcessor(input_space: Space)
Identity processor.
Leaves the input unchanged.
- class posggym.agents.utils.processors.FlattenProcessor(input_space: Space)
Processor for flattening inputs.
- class posggym.agents.utils.processors.RescaleProcessor(input_space: Space, min_val: float = -1.0, max_val: float = 1.0, clip: bool = True)
Rescales input into given range.