Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
)
hyperopt_failed = True
time_spent = time.time() - start_time
- if not ReforceXY.study_has_best_trial(study):
+ study_has_best_trial = ReforceXY.study_has_best_trial(study)
+ if not study_has_best_trial:
logger.error(
f"Hyperopt {study_name} failed ({time_spent:.2f} secs): no study best trial found"
)
study_name,
time_spent,
)
- if ReforceXY.study_has_best_trial(study):
+ if study_has_best_trial:
logger.info(
"Best trial: %s. Score: %s",
study.best_trial.number,