[rllib] Deprecate custom preprocessors (#6833)

* deprecation warnings

* add log warn

* fix test
This commit is contained in:
Eric Liang
2020-01-18 23:30:09 -08:00
committed by GitHub
parent 8a9bd18606
commit a229bdf272
4 changed files with 23 additions and 34 deletions
+5 -1
View File
@@ -139,7 +139,11 @@ Once implemented, the model can then be registered and used in place of a built-
Custom Preprocessors
--------------------
Custom preprocessors should subclass the RLlib `preprocessor class <https://github.com/ray-project/ray/blob/master/rllib/models/preprocessors.py>`__ and be registered in the model catalog. Note that you can alternatively use `gym wrapper classes <https://github.com/openai/gym/tree/master/gym/wrappers>`__ around your environment instead of preprocessors.
.. warning::
Custom preprocessors are deprecated, since they sometimes conflict with the built-in preprocessors for handling complex observation spaces. Please use `wrapper classes <https://github.com/openai/gym/tree/master/gym/wrappers>`__ around your environment instead of preprocessors.
Custom preprocessors should subclass the RLlib `preprocessor class <https://github.com/ray-project/ray/blob/master/rllib/models/preprocessors.py>`__ and be registered in the model catalog:
.. code-block:: python