Skip to content

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

Closed
jnothman wants to merge 3 commits intoscikit-learn:masterfrom
jnothman:binary-logistic
Closed

FIX towards disregarding multi_class in the case of binary y#11859
jnothman wants to merge 3 commits intoscikit-learn:masterfrom
jnothman:binary-logistic

Conversation

@jnothman
Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
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.

multi_class = 'ovr'
# np.unique(y) gives labels in sorted order.
pos_class = classes[1]
if pos_class is None:
Copy link
Copy Markdown
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
Copy Markdown
Member Author

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

@jnothman
Copy link
Copy Markdown
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