8000 [MRG] LogisticCV Score Function Fixed by shufanggeng · Pull Request #8529 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

[MRG] LogisticCV Score Function Fixed #8529

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

Closed
wants to merge 2 commits into from

Conversation

shufanggeng
Copy link

Reference Issue

Fixes #8274

What does this implement/fix? Explain your changes.

LogisticCV score function has been fixed due to a Scikit-Learn bug.

Any other comments?

@shufanggeng shufanggeng changed the title LogisticCV Score Function Fixed [MRG] LogisticCV Score Function Fixed Mar 4, 2017
@@ -1542,6 +1542,7 @@ def fit(self, X, y, sample_weight=None):
self : object
Returns self.
"""

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you remove this empty line?

""

warnings.warn('The score function always returns mean accuracy due to'
' a bug in scikit-learn. Refer the documentation for more details.')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be indented 4 spaces. Also, I don't think this is a bug, it's more an unexpected behavior.

"""Returns the mean accuracy on given test data and labels.

Due to a bug in scikit-learn this method always returns mean accuracy.
This will be fixed in version 0.20. For now you can externally call the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should specify how it will be "fixed". Perhaps "this will be changed to respect the scoring parameter where provided".

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jnothman Thank you for your comment. It is my first contribution to the community and I will try my best to contribute more in the future.

@amueller amueller added Stalled Easy Well-defined and straightforward way to resolve good first issue Easy with clear instructions to resolve help wanted Sprint labels Aug 5, 2019
@amueller
Copy link
Member
amueller commented Aug 5, 2019

fixed in #11192

@amueller amueller closed this Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Easy Well-defined and straightforward way to resolve good first issue Easy with clear instructions to resolve help wanted Sprint Stalled
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LogisticRegressionCV score function should use scoring parameter in the constructor
3 participants
0