From 87a981bd94279c1980da2e54618eb1a4e75bde99 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 17 Feb 2025 14:52:49 +0100 Subject: [PATCH] refactor(qav3): trivial cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .../user_data/freqaimodels/LightGBMRegressorQuickAdapterV35.py | 2 +- .../user_data/freqaimodels/XGBoostRegressorQuickAdapterV35.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/quickadapter/user_data/freqaimodels/LightGBMRegressorQuickAdapterV35.py b/quickadapter/user_data/freqaimodels/LightGBMRegressorQuickAdapterV35.py index 0de8167..8e71c3c 100644 --- a/quickadapter/user_data/freqaimodels/LightGBMRegressorQuickAdapterV35.py +++ b/quickadapter/user_data/freqaimodels/LightGBMRegressorQuickAdapterV35.py @@ -176,8 +176,8 @@ class LightGBMRegressorQuickAdapterV35(BaseRegressionModel): ) if not warmed_up: - dk.data["extra_returns_per_train"][MAXIMA_THRESHOLD_COLUMN] = 2 dk.data["extra_returns_per_train"][MINIMA_THRESHOLD_COLUMN] = -2 + dk.data["extra_returns_per_train"][MAXIMA_THRESHOLD_COLUMN] = 2 else: if self.__optuna_hyperopt: label_period_candles = self.__optuna_period_params.get(pair, {}).get( diff --git a/quickadapter/user_data/freqaimodels/XGBoostRegressorQuickAdapterV35.py b/quickadapter/user_data/freqaimodels/XGBoostRegressorQuickAdapterV35.py index 6618be3..65e1ffe 100644 --- a/quickadapter/user_data/freqaimodels/XGBoostRegressorQuickAdapterV35.py +++ b/quickadapter/user_data/freqaimodels/XGBoostRegressorQuickAdapterV35.py @@ -177,8 +177,8 @@ class XGBoostRegressorQuickAdapterV35(BaseRegressionModel): ) if not warmed_up: - dk.data["extra_returns_per_train"][MAXIMA_THRESHOLD_COLUMN] = 2 dk.data["extra_returns_per_train"][MINIMA_THRESHOLD_COLUMN] = -2 + dk.data["extra_returns_per_train"][MAXIMA_THRESHOLD_COLUMN] = 2 else: if self.__optuna_hyperopt: label_period_candles = self.__optuna_period_params.get(pair, {}).get( -- 2.43.0