ray.rllib.algorithms.algorithm_config.AlgorithmConfig.callbacks
ray.rllib.algorithms.algorithm_config.AlgorithmConfig.callbacks#
- AlgorithmConfig.callbacks(callbacks_class) ray.rllib.algorithms.algorithm_config.AlgorithmConfig [source]#
Sets the callbacks configuration.
- Parameters
callbacks_class – Callbacks class, whose methods will be run during various phases of training and environment sample collection. See the
DefaultCallbacks
class andexamples/custom_metrics_and_callbacks.py
for more usage information.- Returns
This updated AlgorithmConfig object.