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

Lime is not working #167

Open
nilover opened this issue Mar 11, 2021 · 1 comment
Open

Lime is not working #167

nilover opened this issue Mar 11, 2021 · 1 comment

Comments

@nilover
Copy link

nilover commented Mar 11, 2021

Hi,
I am using mlr and iml to build an interpretable prediction model using xgboost. I tried Lime as well as shapley to extract the interpretable feature score (Lime) and phi values (Shapley).

mod_lime.explain = LocalModel$new(mod_predictor, 
+                                  x.interest = data_X[1,],
+                                  k= total_num_features)

Error in lognet(x, is.sparse, ix, jx, y, weights, offset, alpha, nobs,  : 
  NA/NaN/Inf in foreign function call (arg 5)

mod_shapley = Shapley$new(mod_predictor, 
                                                  x.interest = data_X[1,])
plot(mod_shapley)

Thank you very much for the help.

@christophM
Copy link
Collaborator

The error seems like there is some trouble fitting the LIME regression model.
Could you provide a reproducible example? Without one I can't say why the error occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants