Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

importing error #108

Open
MohammadSoltani100 opened this issue May 31, 2022 · 2 comments
Open

importing error #108

MohammadSoltani100 opened this issue May 31, 2022 · 2 comments

Comments

@MohammadSoltani100
Copy link

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

@xuyxu
Copy link
Member

xuyxu commented Jun 1, 2022

Hi @MohammadSoltani100, what is the version of scikit-learn you installed ?

@xuyxu
Copy link
Member

xuyxu commented Jun 1, 2022

You may need to downgrade your sklearn package to a version smaller than 1.0.0. Fix on compatibility is still under development.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants