From: Jérôme Benoit Date: Thu, 8 Jan 2026 20:20:28 +0000 (+0100) Subject: refactor(quickadapter): use has_eval_set flag X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4fa5a399be06418f8e523cfc77d350013f8fccd9;p=freqai-strategies.git refactor(quickadapter): use has_eval_set flag Signed-off-by: Jérôme Benoit --- diff --git a/quickadapter/user_data/strategies/Utils.py b/quickadapter/user_data/strategies/Utils.py index 229e365..cc3be9b 100644 --- a/quickadapter/user_data/strategies/Utils.py +++ b/quickadapter/user_data/strategies/Utils.py @@ -1791,7 +1791,7 @@ def fit_regressor( X_val = None y_val = None - if eval_set is not None and len(eval_set) > 0: + if has_eval_set: X_val, y_val = eval_set[0] y_val = y_val.to_numpy().ravel()