From 61f862968a61f81e5f5298338c9fce10365911c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20Kir=C3=A1ly?= Date: Sun, 10 Sep 2023 12:57:04 +0200 Subject: [PATCH] fix --- skpro/regression/residual.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/skpro/regression/residual.py b/skpro/regression/residual.py index 6d41594e6..de1ad6f60 100644 --- a/skpro/regression/residual.py +++ b/skpro/regression/residual.py @@ -169,7 +169,7 @@ def _predict_residuals_cv(self, X, y, cv, est): y_pred : pandas DataFrame, same length as `X`, same columns as `y` in `fit` labels predicted for `X` """ - est = self.estimator_resid + est = self.estimator_resid_ method = "predict" y_pred = y.copy() @@ -382,5 +382,6 @@ def get_test_params(cls, parameter_set="default"): "distr_params": {"df": 3}, "cv": KFold(n_splits=3), } + params4 = {"estimator": RandomForestRegressor(), "cv": KFold(n_splits=3)} - return [params1, params2, params3] + return [params1, params2, params3, params4]