-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
GBM bugfix: matching predictions LightGBM, hummingbird #2574
Conversation
Unit Test Results 4 files - 1 4 suites - 1 1h 52m 36s ⏱️ - 27m 54s For more details on these failures, see this check. Results for commit ac455d0. ± Comparison against base commit 1dc66ca. ♻️ This comment has been updated with latest results. |
@@ -719,17 +722,17 @@ def set_steps_to_1_or_quit(self, signum, frame): | |||
def _construct_lgb_params(self) -> Tuple[dict, dict]: | |||
output_params = {} | |||
feature = next(iter(self.model.output_features.values())) | |||
if feature.type() == CATEGORY: | |||
if feature.type() == BINARY or (hasattr(feature, "num_classes") and feature.num_classes == 2): |
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.
Why do we need to check the num_classes stuff here when the feature is binary?
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.
a user can specify a category variable with only two classes, this is to catch that case and explicitly use LightGBM with the binary objective
This PR:
There are quite some changes, the PR is best reviewed commit-by-commit