Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

incompatibility issue between scikit-learn 0.24.1 and scikit-optimize 0.8.1

I have scikit-learn 0.24.1 and scikit-optimize 0.8.1, when I tried to use the BayesSearchCV function it gave me this error:

TypeError: __init__() got an unexpected keyword argument 'iid'

when I searched it turned out that the 'iid' is deprecated in the new scikit-learn, any suggestions to solve this problem?

like image 498
user12995140 Avatar asked Jan 28 '21 11:01

user12995140


People also ask

What is the issue number for scikit-optimize?

· Issue #902 · scikit-optimize/scikit-optimize · GitHub 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.

Does scikit-learn deprecated the IID Param?

I've also encountered the same issue, and I found that scikit-learn has deprecated the iid param. Temporarily, I have downgraded the scikit-learn version to <= 0.23.2 , and it solved my problem.

How to downgrade scikit-learn?

You can downgrade it using : pip install 'scikit-learn==0.23.2' or lower. Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question. Provide details and share your research! But avoid … Asking for help, clarification, or responding to other answers.


1 Answers

I've also encountered the same issue, and I found that scikit-learn has deprecated the iid param. Temporarily, I have downgraded the scikit-learn version to <= 0.23.2 , and it solved my problem.

You can downgrade it using : pip install 'scikit-learn==0.23.2' or lower.

like image 196
Akshay Tilekar Avatar answered Nov 02 '22 05:11

Akshay Tilekar