emmi.modules.preprocessors.normalizers.position_normalizer

Classes

PositionNormalizer

Normalizes position data to a range of [0, scale]. It inherits from ShiftAndScaleNormalizer and applies a shift and scale based on the provided raw position min and max values.

Module Contents

class emmi.modules.preprocessors.normalizers.position_normalizer.PositionNormalizer(normalizer_config, **kwargs)

Bases: emmi.modules.preprocessors.normalizers.shift_and_scale_normalizer.ShiftAndScaleNormalizer

Normalizes position data to a range of [0, scale]. It inherits from ShiftAndScaleNormalizer and applies a shift and scale based on the provided raw position min and max values.

Parameters:
  • normalizer_config (ksuit.schemas.normalizers.normalizer_config.PositionNormalizerConfig) – Configuration containing raw position min, max, and scale values.

  • **kwargs – Additional arguments passed to the parent class.

Raises:
  • ValueError – If raw_pos_min and raw_pos_max do not have the same length.

  • ValueError – If raw_pos_max is equal to raw_pos_min.

  • ValueError – If scale is not a positive number.

raw_pos_min
raw_pos_max
resizing_scale