Merge pull request #9559 from stevanStevic/improve-no-hyperopt-result-log

Improve log message when no good hyperopt result is found
This commit is contained in:
Matthias
2023-12-17 10:03:36 +01:00
committed by GitHub

View File

@@ -637,6 +637,10 @@ class Hyperopt:
HyperoptTools.show_epoch_details(self.current_best_epoch, self.total_epochs,
self.print_json)
elif self.num_epochs_saved > 0:
print(
f"No good result found for given optimization function in {self.num_epochs_saved} "
f"{plural(self.num_epochs_saved, 'epoch')}.")
else:
# This is printed when Ctrl+C is pressed quickly, before first epochs have
# a chance to be evaluated.