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

static Catalog.get_preprocessor(observation_space: <MagicMock name='mock.Space' id='140492860849888'>, **kwargs) ray.rllib.models.preprocessors.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