incompatibility issue between scikit-learn 0.24.1 and scikit-optimize 0.8.1
Asked Answered
T

2

10

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?

Therein answered 28/1, 2021 at 11:43 Comment(1)
iid is not deprecated. Could you add the code causing the problem?Linders
L
1

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.

Lubber answered 5/8, 2021 at 8:12 Comment(0)
F
0

As it says here, 'iid' is deprecated:

https://github.com/scikit-optimize/scikit-optimize/issues/978

Firecure answered 17/2, 2021 at 19:49 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.