You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ImportError Traceback (most recent call last)
Input In [59], in <cell line: 24>()
22 import time
23 import io
---> 24 from deepforest import CascadeForestRegressor
25 import joblib
26 from sklearn.utils.fixes import joblib
File ~\anaconda3\lib\site-packages\deepforest_init_.py:1, in
----> 1 from .cascade import CascadeForestClassifier, CascadeForestRegressor
2 from .forest import RandomForestClassifier, RandomForestRegressor
3 from .forest import ExtraTreesClassifier, ExtraTreesRegressor
File ~\anaconda3\lib\site-packages\deepforest\cascade.py:17, in
15 from . import _utils
16 from . import _io
---> 17 from ._layer import (
18 ClassificationCascadeLayer,
19 RegressionCascadeLayer,
20 CustomCascadeLayer,
21 )
22 from ._binner import Binner
25 def _get_predictor_kwargs(predictor_kwargs, **kwargs) -> dict:
File ~\anaconda3\lib\site-packages\deepforest_layer.py:17, in
14 from sklearn.base import BaseEstimator, ClassifierMixin, RegressorMixin
16 from . import _utils
---> 17 from ._estimator import Estimator
18 from .utils.kfoldwrapper import KFoldWrapper
21 def _build_estimator(
22 X,
23 y,
(...)
32 sample_weight=None,
33 ):
File ~\anaconda3\lib\site-packages\deepforest_estimator.py:7, in
4 all = ["Estimator"]
6 import numpy as np
----> 7 from .forest import (
8 RandomForestClassifier,
9 ExtraTreesClassifier,
10 RandomForestRegressor,
11 ExtraTreesRegressor,
12 )
13 from sklearn.ensemble import (
14 RandomForestClassifier as sklearn_RandomForestClassifier,
15 ExtraTreesClassifier as sklearn_ExtraTreesClassifier,
16 RandomForestRegressor as sklearn_RandomForestRegressor,
17 ExtraTreesRegressor as sklearn_ExtraTreesRegressor,
18 )
21 def make_classifier_estimator(
22 name,
23 criterion,
(...)
30 ):
31 # RandomForestClassifier
File ~\anaconda3\lib\site-packages\deepforest\forest.py:34, in
32 from sklearn.utils import check_random_state, compute_sample_weight
33 from sklearn.exceptions import DataConversionWarning
---> 34 from sklearn.utils.fixes import _joblib_parallel_args
35 from sklearn.utils.validation import check_is_fitted, _check_sample_weight
36 from sklearn.utils.validation import _deprecate_positional_args
ImportError: cannot import name '_joblib_parallel_args' from 'sklearn.utils.fixes' (C:\Users\Mohammad\anaconda3\lib\site-packages\sklearn\utils\fixes.py)
scikit-learn was upgraded
joblib was upgraded
still got error
The text was updated successfully, but these errors were encountered:
Got this erroe with importing
ImportError Traceback (most recent call last)
Input In [59], in <cell line: 24>()
22 import time
23 import io
---> 24 from deepforest import CascadeForestRegressor
25 import joblib
26 from sklearn.utils.fixes import joblib
File ~\anaconda3\lib\site-packages\deepforest_init_.py:1, in
----> 1 from .cascade import CascadeForestClassifier, CascadeForestRegressor
2 from .forest import RandomForestClassifier, RandomForestRegressor
3 from .forest import ExtraTreesClassifier, ExtraTreesRegressor
File ~\anaconda3\lib\site-packages\deepforest\cascade.py:17, in
15 from . import _utils
16 from . import _io
---> 17 from ._layer import (
18 ClassificationCascadeLayer,
19 RegressionCascadeLayer,
20 CustomCascadeLayer,
21 )
22 from ._binner import Binner
25 def _get_predictor_kwargs(predictor_kwargs, **kwargs) -> dict:
File ~\anaconda3\lib\site-packages\deepforest_layer.py:17, in
14 from sklearn.base import BaseEstimator, ClassifierMixin, RegressorMixin
16 from . import _utils
---> 17 from ._estimator import Estimator
18 from .utils.kfoldwrapper import KFoldWrapper
21 def _build_estimator(
22 X,
23 y,
(...)
32 sample_weight=None,
33 ):
File ~\anaconda3\lib\site-packages\deepforest_estimator.py:7, in
4 all = ["Estimator"]
6 import numpy as np
----> 7 from .forest import (
8 RandomForestClassifier,
9 ExtraTreesClassifier,
10 RandomForestRegressor,
11 ExtraTreesRegressor,
12 )
13 from sklearn.ensemble import (
14 RandomForestClassifier as sklearn_RandomForestClassifier,
15 ExtraTreesClassifier as sklearn_ExtraTreesClassifier,
16 RandomForestRegressor as sklearn_RandomForestRegressor,
17 ExtraTreesRegressor as sklearn_ExtraTreesRegressor,
18 )
21 def make_classifier_estimator(
22 name,
23 criterion,
(...)
30 ):
31 # RandomForestClassifier
File ~\anaconda3\lib\site-packages\deepforest\forest.py:34, in
32 from sklearn.utils import check_random_state, compute_sample_weight
33 from sklearn.exceptions import DataConversionWarning
---> 34 from sklearn.utils.fixes import _joblib_parallel_args
35 from sklearn.utils.validation import check_is_fitted, _check_sample_weight
36 from sklearn.utils.validation import _deprecate_positional_args
ImportError: cannot import name '_joblib_parallel_args' from 'sklearn.utils.fixes' (C:\Users\Mohammad\anaconda3\lib\site-packages\sklearn\utils\fixes.py)
scikit-learn was upgraded
joblib was upgraded
still got error
The text was updated successfully, but these errors were encountered: