Skip to content

Commit ec020dc

Browse files
committed
Drop spurious warning that trees are not supported for regression
KhiopsRegressor fully supports the `n_trees` attribute.
1 parent c0317ed commit ec020dc

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

khiops/sklearn/estimators.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2172,8 +2172,6 @@ def fit(self, X, y=None, **kwargs):
21722172
self : `KhiopsRegressor`
21732173
The calling estimator instance.
21742174
"""
2175-
if self.n_trees > 0:
2176-
warnings.warn("Khiops does not support n_trees > 0 for regression models.")
21772175
kwargs["categorical_target"] = False
21782176
return super().fit(X, y=y, **kwargs)
21792177

0 commit comments

Comments
 (0)