From ae9073885f79a02cfc5721fb848d42f233658dc8 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 31 May 2025 15:55:34 +0200 Subject: [PATCH] chore: Update log wording, only log "duplicate parameters" once --- freqtrade/optimize/hyperopt/hyperopt.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/freqtrade/optimize/hyperopt/hyperopt.py b/freqtrade/optimize/hyperopt/hyperopt.py index db4567c39..9c2fa2016 100644 --- a/freqtrade/optimize/hyperopt/hyperopt.py +++ b/freqtrade/optimize/hyperopt/hyperopt.py @@ -206,9 +206,8 @@ class Hyperopt: asked_non_tried.append(asked_new) i += 1 if len(asked_non_tried) < n_points: - logger.warning( - "duplicate params detected. Please check if search space is not too small!" - ) + if self.count_skipped_epochs == 0: + logger.warning("Duplicate params detected. Maybe your search space is too small?") self.count_skipped_epochs += n_points - len(asked_non_tried) return asked_non_tried, [False for _ in range(len(asked_non_tried))]