ray.rllib.callbacks.callbacks.RLlibCallback.on_evaluate_offline_end#
- RLlibCallback.on_evaluate_offline_end(*, algorithm: Algorithm, metrics_logger: MetricsLogger | None = None, evaluation_metrics: dict, **kwargs) None [source]#
Runs when the offline evaluation is done.
Runs at the end of Algorithm.evaluate_offline().
- Parameters:
algorithm – Reference to the algorithm instance.
metrics_logger – The MetricsLogger object inside the
Algorithm
. Can be used to log custom metrics after the most recent offline evaluation round.evaluation_metrics – Results dict to be returned from Algorithm.evaluate_offline(). You can mutate this object to add additional metrics.
kwargs – Forward compatibility placeholder.