Skip to content

[BUG] lightgbm.basic.booster classifier was recognized as regressor #1838

Answered by noamzbr
omrialo asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @omrialo. The checks and suites in deepchecks expect the model to provide the methods of the sklearn api for models, as detailed in our Supported Models guide. The way deepchecks recognizes classification models is by checking if they have a predict_proba method, which deepchecks uses to compute the predicted class probabilities for all classes. Models with only a predict method are assumed to be regression models.

In the case of lightgbm.basic.Booster, it has only a predict method, that either produces the class probability of the second class for binary classification, or of all classes for multiclass. The solution for that is to write a short model wrapper object that will make sure…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by noamzbr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
tabular Affects deepchecks.tabular package
2 participants
Converted from issue

This discussion was converted from issue #1829 on July 27, 2022 12:21.