thomasp85 / lime

Local Interpretable Model-Agnostic Explanations (R port of original Python package)

Home Page:https://lime.data-imaginist.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in feature_distribution[[i]] : subscript out of bounds

wony1105 opened this issue · comments

Hi there,

I am keep experiencing error when I use explain function in r.

explainer_xgb <- lime(data_train_1718 %>% dplyr::select(-tj_year), xgb_fit_1718, bin_continuous = F, quantile_bins = F)
explanations_xgb <- lime::explain(data_test_samp, explainer_xgb, labels = "1", n_features = 10)

Error in feature_distribution[[i]] : subscript out of bounds

My data has about 300 columns and column names like "CU_release_pos_z_mn" (about 20~30 characters per each column)
I think this is causing problems, maybe.

Is there any way I can go through this?