From cd98433e9dbcfc31dd9db4ac9262ce333ead3a66 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 13 Jun 2025 14:05:18 +0200 Subject: [PATCH] fix(qav3): fix running pivots labeling optimization twice, take 4 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .../user_data/freqaimodels/QuickAdapterRegressorV3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py b/quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py index 17f92e3..14c4a11 100644 --- a/quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py +++ b/quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py @@ -354,12 +354,12 @@ class QuickAdapterRegressorV3(BaseRegressionModel): finally: self.set_optuna_label_candle(pair) self._optuna_label_candles[pair] = 0 - if len(self._optuna_label_incremented_pairs) >= len(self.pairs): - self._optuna_label_incremented_pairs = [] else: logger.info( f"Optuna {pair} {namespace} callback throttled, still {optuna_label_remaining_candles} candles to go" ) + if len(self._optuna_label_incremented_pairs) >= len(self.pairs): + self._optuna_label_incremented_pairs = [] def fit_live_predictions(self, dk: FreqaiDataKitchen, pair: str) -> None: warmed_up = True -- 2.43.0