-
Notifications
You must be signed in to change notification settings - Fork 96
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
acp module is outdated and does not work as it uses an older version of scikit-learn #16
Comments
Do you know which version of scikit learn is stable with nonconformist 2.1.0 especially concerning acp?
|
Using scikit-learn 0.17 worked for me. 'n_iter' was renamed to 'n_splits' in the sklearn.model_selection.StratifiedShuffleSplit class in version 0.18 (see the relevant release history here: https://scikit-learn.org/0.18/whats_new.html). |
It seems this has been changed in the code, but this hasn't been updated on pypi. I am still getting the same error with the pypi version: File "C:\Users\auffarb\.conda\envs\py10\Lib\site-packages\nonconformist\acp.py", line 10, in <module>
from sklearn.cross_validation import KFold, StratifiedKFold
ModuleNotFoundError: No module named 'sklearn.cross_validation' |
Please replace this bit:
nonconformist/nonconformist/acp.py
Lines 10 to 11 in cdef0d1
by:
from sklearn.model_selection import KFold, StratifiedKFold
from sklearn.model_selection import ShuffleSplit, StratifiedShuffleSplit
The text was updated successfully, but these errors were encountered: