-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[python-package] Fix misdetected objective after multiple calls to LGBMClassifier.fit
#6002
[python-package] Fix misdetected objective after multiple calls to LGBMClassifier.fit
#6002
Conversation
LGBMClassifier.fit
LGBMClassifier.fit
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.
Makes sense to me, thanks!
@jmoralez could you review as well whenever you have time?
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.
Thanks!
Seems that we encounter segment faults and test case failures after merging this PR. Maybe we shall investigate this? |
Thanks @shiyu1994 . I'll look into that today. I'm confused how the tests could have passed on this PR and now be failing on The segfaults might be unrelated, but I don't understand how this could be failing on
|
@shiyu1994 I just merged #6090 to
So I suspect these test failures were a transient issue caused by the order commits were merged or something. I'm not planning to investigate this further unless we see it again. |
This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
fixes #5675
This PR fixes a bug in which
LGBMClassifier
will set its internal objective after the first call tofit
and won't try to detect it anymore based on the suppliedy
on subsequent calls tofit
.