-
Notifications
You must be signed in to change notification settings - Fork 21
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
module 'sklearn.metrics' has no attribute 'scorer' with sklearn 0.23.0 #20
Comments
scorer becomes a private API in newer version of sklearn. One fix to this is to change those metrics.scorer to metrics._scorer in the model_selection.py. |
@YUHENGLEEEEE thanks Steve, please submit a pull request? |
are you going to update the package? |
Hi all, I see that there is an issue with latest versions of Can anyone help? Thank you :) |
Hi all, I have eventually figured the issue out. The solution specified above is indeed the correct one. My feeling was that, with non-custom scoring parameters, the fact that |
I just updated sklearn to 0.23.0 and now hypopt .fit() function raises this error where using scoring='accuracy' with sklearn LocalOutlierFactor():
/usr/local/lib/python3.7/site-packages/hypopt/model_selection.py:174: UserWarning: ERROR in thread<NoDaemonProcess(NoDaemonPoolWorker-2, started)>with exception:
module 'sklearn.metrics' has no attribute 'scorer'.
Any compatibility issues with latest sklearn?
The text was updated successfully, but these errors were encountered: