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

Error with lightgbm regressor and importance_measure = gini [BUG] #115

Open
tszyan-bain opened this issue Jun 8, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@tszyan-bain
Copy link

Describe the bug

Checking the availability of feature_importance_ when importance_measure="gini" does not work for lightgbm regressor.

To Reproduce

Steps to reproduce the behavior:

  1. Initiate a lightgbm regressor and use it as the model for BorutaShap
  2. choose importance_measure = "gini"
  3. the pre-fitting check will false since before doing fitting, feature_importance_ attribute is not set in the regressor

Expected behavior

It should not raise an error.

Screenshots

Additional context

Workaround:

  1. use "shap"
  2. pre-fitting: doing a pre-fitting will expose the feature_importance_ attribute in the regressor
@tszyan-bain tszyan-bain added the bug Something isn't working label Jun 8, 2023
@tszyan-bain tszyan-bain changed the title [BUG] Error with lightgbm regressor and importance_measure = gini [BUG] Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant