giuseppec / giuseppec/iml

Lime is not working

Open
#167 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
R
Stars
503
Forks
87
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.