ray.rllib.core.models.catalog.Catalog.get_preprocessor#

static Catalog.get_preprocessor(observation_space: gymnasium.Space, **kwargs) Preprocessor[source]#

Returns a suitable preprocessor for the given observation space.

Parameters:
  • observation_space – The input observation space.

  • **kwargs – Forward-compatible kwargs.

Returns:

Preprocessor for the observations.

Return type:

preprocessor