Skip to content
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

[ML] add LGBMClassifier transform support #252

Merged
merged 1 commit into from
Aug 12, 2020
Merged

[ML] add LGBMClassifier transform support #252

merged 1 commit into from
Aug 12, 2020

Conversation

benwtrent
Copy link
Member

Adds support for transforming LGBMClassifier models.

We are able to support binary, multiclass, and multiclassova. These are the only valid ones for classification.
But, still restricting to prevent a regression where lightgbm adds a new objective without us knowing.

@benwtrent benwtrent added enhancement New feature or request topic:NLP Issue or PR about NLP model support and eland_import_hub_model labels Aug 11, 2020
@@ -62,6 +62,10 @@
)


def random_rows(data, size):
Copy link
Member Author

Choose a reason for hiding this comment

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

this provides MUCH better testing.

The training data is random, and selecting a random subset to infer against provides much better coverage than a static two rows.

Copy link
Contributor

@sethmlarson sethmlarson left a comment

Choose a reason for hiding this comment

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

LGTM from a Python perspective, does this need an ML review too like LGBMRegressor?

@benwtrent
Copy link
Member Author

@sethmlarson i don't think so. Much of the logic formatting is exactly the same as xgboost. The node extraction is just slightly different.

@sethmlarson
Copy link
Contributor

Great! I'll merge this then :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request topic:NLP Issue or PR about NLP model support and eland_import_hub_model
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants