@@ -50,11 +50,16 @@ class calls the ``fit`` method of each sub-estimator on random samples
50
50
from scipy .sparse import issparse
51
51
from scipy .sparse import hstack as sparse_hstack
52
52
53
- from ..base import is_classifier
54
- from ..base import ClassifierMixin , MultiOutputMixin , RegressorMixin , TransformerMixin
53
+ from sklearn .base import is_classifier
54
+ from sklearn .base import (
55
+ ClassifierMixin ,
56
+ MultiOutputMixin ,
57
+ RegressorMixin ,
58
+ TransformerMixin ,
59
+ )
55
60
56
- from . .metrics import accuracy_score , r2_score
57
- from . .preprocessing import OneHotEncoder
61
+ from sklearn .metrics import accuracy_score , r2_score
62
+ from sklearn .preprocessing import OneHotEncoder
58
63
from ..tree import (
59
64
BaseDecisionTree ,
60
65
DecisionTreeClassifier ,
@@ -63,21 +68,21 @@ class calls the ``fit`` method of each sub-estimator on random samples
63
68
ExtraTreeRegressor ,
64
69
)
65
70
from ..tree ._tree import DTYPE , DOUBLE
66
- from . .utils import check_random_state , compute_sample_weight
67
- from . .exceptions import DataConversionWarning
68
- from ._base import BaseEnsemble , _partition_estimators
69
- from . .utils .parallel import delayed , Parallel
70
- from . .utils .multiclass import check_classification_targets , type_of_target
71
- from . .utils .validation import (
71
+ from sklearn .utils import check_random_state , compute_sample_weight
72
+ from sklearn .exceptions import DataConversionWarning
73
+ from sklearn . ensemble ._base import BaseEnsemble , _partition_estimators
74
+ from sklearn .utils .parallel import delayed , Parallel
75
+ from sklearn .utils .multiclass import check_classification_targets , type_of_target
76
+ from sklearn .utils .validation import (
72
77
check_is_fitted ,
73
78
_check_sample_weight ,
74
79
_check_feature_names_in ,
75
80
)
76
- from . .utils ._openmp_helpers import _openmp_effective_n_threads
77
- from . .utils .validation import _num_samples
78
- from . .utils ._param_validation import Interval , StrOptions
79
- from . .utils ._param_validation import RealNotInt
80
- from ._hist_gradient_boosting .binning import _BinMapper
81
+ from sklearn .utils ._openmp_helpers import _openmp_effective_n_threads
82
+ from sklearn .utils .validation import _num_samples
83
+ from sklearn .utils ._param_validation import Interval , StrOptions
84
+ from sklearn .utils ._param_validation import RealNotInt
85
+ from sklearn . ensemble ._hist_gradient_boosting .binning import _BinMapper
81
86
82
87
__all__ = [
83
88
"RandomForestClassifier" ,
0 commit comments