From bc1ad3acbd64ccc1dce0e2bdf8a104768775fbac Mon Sep 17 00:00:00 2001 From: Stevan Stevic Date: Sat, 16 Dec 2023 22:09:02 +0100 Subject: [PATCH 1/2] Improve logging --- freqtrade/optimize/hyperopt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/freqtrade/optimize/hyperopt.py b/freqtrade/optimize/hyperopt.py index 58c3fe18a..f226ae2fd 100644 --- a/freqtrade/optimize/hyperopt.py +++ b/freqtrade/optimize/hyperopt.py @@ -637,6 +637,8 @@ class Hyperopt: HyperoptTools.show_epoch_details(self.current_best_epoch, self.total_epochs, self.print_json) + elif self.num_epochs_saved > 0: + print("No good result found for given optimization function.") else: # This is printed when Ctrl+C is pressed quickly, before first epochs have # a chance to be evaluated. From c580e8783f54657ac7aedf57d95256c586a9116a Mon Sep 17 00:00:00 2001 From: Stevan Stevic Date: Sat, 16 Dec 2023 22:36:56 +0100 Subject: [PATCH 2/2] fixup --- freqtrade/optimize/hyperopt.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/freqtrade/optimize/hyperopt.py b/freqtrade/optimize/hyperopt.py index f226ae2fd..5d5d15b03 100644 --- a/freqtrade/optimize/hyperopt.py +++ b/freqtrade/optimize/hyperopt.py @@ -638,7 +638,9 @@ class Hyperopt: HyperoptTools.show_epoch_details(self.current_best_epoch, self.total_epochs, self.print_json) elif self.num_epochs_saved > 0: - print("No good result found for given optimization function.") + 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.