optuna.terminator.report_cross_validation_scores

optuna.terminator.report_cross_validation_scores(trial, scores)[source]

A function to report cross-validation scores of a trial.

This function should be called within the objective function to report the cross-validation scores. The reported scores are used to evaluate the statistical error for termination judgement.

Parameters:
  • trial (Trial) – A Trial object to report the cross-validation scores.

  • scores (list[float]) – The cross-validation scores of the trial.

Return type:

None