RangeZeroOneObservationNormalizationStrategy

class maze.core.wrappers.observation_normalization.normalization_strategies.range_zero_one.RangeZeroOneObservationNormalizationStrategy(observation_space: gymnasium.spaces.Box, clip_range: Tuple[float | int, float | int], axis: int | Tuple[int] | List[int] | None)

Normalizes observations to value range [0, 1].

The strategy subtracts in a first step the minimum observed value to shift the lowest value after normalization to zero. In a subsequent step we divide the observation with the maximum of the previous step yielding observations in the range [0, 1].

estimate_stats(observations: List[numpy.ndarray]) → Dict[str, numpy.ndarray | float | int | Iterable[float | int]]

(overrides ObservationNormalizationStrategy)

Implementation of

ObservationNormalizationStrategy interface.

normalize_value(value: numpy.ndarray) → numpy.ndarray

(overrides ObservationNormalizationStrategy)

Implementation of

ObservationNormalizationStrategy interface.