diff --git a/sklearn/ensemble/_forest.py b/sklearn/ensemble/_forest.py index 57a4750c612bd..99aa86157d6e9 100644 --- a/sklearn/ensemble/_forest.py +++ b/sklearn/ensemble/_forest.py @@ -1753,7 +1753,7 @@ def _compute_partial_dependence_recursion(self, grid, target_features): def __sklearn_tags__(self): tags = super().__sklearn_tags__() - tags.regressor_tags.multi_label = True + # tags.regressor_tags.multi_label = True TODO: add regression support return tags diff --git a/sklearn/tree/_classes.py b/sklearn/tree/_classes.py index 7a49c6dc93485..2ce58759d8253 100644 --- a/sklearn/tree/_classes.py +++ b/sklearn/tree/_classes.py @@ -15,7 +15,6 @@ import numpy as np from scipy.sparse import issparse -from sklearn.utils import metadata_routing from sklearn.base import ( BaseEstimator, ClassifierMixin, @@ -25,7 +24,12 @@ clone, is_classifier, ) -from sklearn.utils import Bunch, check_random_state, compute_sample_weight +from sklearn.utils import ( + Bunch, + check_random_state, + compute_sample_weight, + metadata_routing, +) from sklearn.utils._param_validation import Hidden, Interval, RealNotInt, StrOptions from sklearn.utils.multiclass import ( _check_partial_fit_first_call,