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

DeepFM example: AttributeError: module 'sklearn.utils' has no attribute '_deprecate_positional_args' #73

Open
unnir opened this issue Oct 2, 2021 · 3 comments

Comments

@unnir
Copy link

unnir commented Oct 2, 2021

Hey,

got this error:

AttributeError: module 'sklearn.utils' has no attribute '_deprecate_positional_args'
I believe it is due to the new version of sckiti-learn.

@lixfz
Copy link
Collaborator

lixfz commented Oct 8, 2021

Please downgrade scikit-learn to 0.24.x, eg:0.24.2.
We'll fix this issue in next release.

@unnir
Copy link
Author

unnir commented Oct 9, 2021

thank you!

@yiming-lzx
Copy link

Please downgrade scikit-learn to 0.24.x, eg:0.24.2. We'll fix this issue in next release.

it takes another problum,here is the error:

2022-07-05 09:21:04.474955: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2022-07-05 09:21:04.475023: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Traceback (most recent call last):
File "/root/cooka/dataset/iris_test_2/experiments/iris_test_2_1/train.py", line 32, in
from hypergbm.estimators import LightGBMEstimator, XGBoostEstimator, CatBoostEstimator
File "/root/anaconda3/envs/py37/lib/python3.7/site-packages/hypergbm/init.py", line 7, in
from .hyper_gbm import HyperGBM, HyperGBMEstimator, HyperGBMExplainer, HyperEstimator, HyperModel
File "/root/anaconda3/envs/py37/lib/python3.7/site-packages/hypergbm/hyper_gbm.py", line 13, in
import dask_ml.model_selection as dm_sel
File "/root/anaconda3/envs/py37/lib/python3.7/site-packages/dask_ml/init.py", line 4, in
from dask_ml.model_selection import _normalize
File "/root/anaconda3/envs/py37/lib/python3.7/site-packages/dask_ml/model_selection/init.py", line 6, in
from ._hyperband import HyperbandSearchCV
File "/root/anaconda3/envs/py37/lib/python3.7/site-packages/dask_ml/model_selection/_hyperband.py", line 12, in
from ._incremental import BaseIncrementalSearchCV
File "/root/anaconda3/envs/py37/lib/python3.7/site-packages/dask_ml/model_selection/_incremental.py", line 26, in
from sklearn.utils.metaestimators import available_if
ImportError: cannot import name 'available_if' from 'sklearn.utils.metaestimators' (/root/anaconda3/envs/py37/lib/python3.7/site-packages/sklearn/utils/metaestimators.py)

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

3 participants