-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
Fix class_weight parametrization in naive bayes #1511
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
Comments
The |
Err, sorry I was a bit confused/unclear. |
If you think this might be easy enough for me to do, I'd gladly do it. |
It's probably not hard but without really looking into it, I can't say what exactly needs to be done. |
Ok, I have no idea how to actually do this :-/ see my comments in #1525 |
OK, thanks for keeping me posted =) We can probably close this then. |
well, having a somewhat consistent interface would be nice. for example accepting both dicts and lists for class weights in all classifiers. |
@mblondel @larsmans @GaelVaroquaux I'm having a bit second thoughts on the renaming of Another thing to consider: The dummy classifier that @mblondel introduced recently used the name |
Is this still open? |
@rajatkhanduja the last comment on this is @larsmans saying "let's discuss this after the release", which probably was like 0.13 or 0.14. I'm a bit unsure if there is an issue or not. Maybe it's best to close. But it still feels weird to me. |
There are some loose ends after merging #1491 and #1499.
In NB, the class weights are now a lists. They should be a list and also accept an auto keyword. That should be easy enough to do using
sklearn.utils.compute_class_weight
, see #1491.The text was updated successfully, but these errors were encountered: