ray.tune.Callback.on_trial_result#

Callback.on_trial_result(iteration: int, trials: List[Trial], trial: Trial, result: Dict, **info)[source]#

Called after receiving a result from a trial.

The search algorithm and scheduler are notified before this hook is called.

Parameters:
  • iteration – Number of iterations of the tuning loop.

  • trials – List of trials.

  • trial – Trial that just sent a result.

  • result – Result that the trial sent.

  • **info – Kwargs dict for forward compatibility.