-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Accept column vectors when having binary or multiclass targets #673
Conversation
This reverts commit e860876.
Codecov Report
@@ Coverage Diff @@
## master #673 +/- ##
=========================================
Coverage ? 98.59%
=========================================
Files ? 82
Lines ? 4850
Branches ? 0
=========================================
Hits ? 4782
Misses ? 68
Partials ? 0
Continue to review full report at Codecov.
|
This reverts commit e860876.
random_state=0, | ||
) | ||
|
||
y = y.reshape(-1, 1) # Make the target 2d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add another check when having pandas Series and DataFrame
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking to make a follow up PR to address #666. So, this check could be added in that same PR. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK good then
@glemaitre after a retrigger all tests passed. |
Reference Issue
Fixes #671
What does this implement/fix? Explain your changes.
Converts the target vector in the binary or multiclass case
Any other comments?
#666 (OMG what an evil number) is related but it will be solved probably in a following PR because there is an extra check of the name in the
y
which I think that is redundant.