Skip to content

FIX towards disregarding multi_class in the case of binary y #11859

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 3 commits into from

Conversation

jnothman
Copy link
Member

This is not quite ready. Apparently just changing : to ... wasn't the quick fix I needed.

Copy link
Member Author

@jnothman jnothman left a comment

Choose a reason for hiding this comment

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

Hmm. I meant to have one commit for the revert of 4dafa52 and another for subsequent changes. It seems I failed in that.

# np.unique(y) gives labels in sorted order.
pos_class = classes[1]
if pos_class is None:
Copy link
Member

Choose a reason for hiding this comment

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

Took the liberty to push this if, which I thought was missing. Still some other issues with the coef_ shape.

@jnothman
Copy link
Member Author

Sorry, I'd completed the fix, but fell asleep.

@jnothman
Copy link
Member Author

Closing in preference for #11868

@jnothman jnothman closed this Aug 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants