From f070f627229bc61da7c02982538f0ede669da1ca Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 28 Dec 2025 02:34:12 +0100 Subject: [PATCH] refactor(quickadapter): ensure 1D target with HistGradientBoostingRegressor MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- quickadapter/user_data/strategies/Utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quickadapter/user_data/strategies/Utils.py b/quickadapter/user_data/strategies/Utils.py index 8a53372..4364ee3 100644 --- a/quickadapter/user_data/strategies/Utils.py +++ b/quickadapter/user_data/strategies/Utils.py @@ -2058,6 +2058,7 @@ def fit_regressor( y_val = None if eval_set is not None and len(eval_set) > 0: X_val, y_val = eval_set[0] + y_val = y_val.to_numpy().ravel() sample_weight_val = None if eval_weights is not None and len(eval_weights) > 0: @@ -2071,7 +2072,7 @@ def fit_regressor( model.fit( X=X, - y=y, + y=y.to_numpy().ravel(), sample_weight=train_weights, X_val=X_val, y_val=y_val, -- 2.43.0