thomasp85 / lime

Local Interpretable Model-Agnostic Explanations (R port of original Python package)
https://lime.data-imaginist.com/
Other
486 stars 110 forks source link

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

Open wony1105 opened 3 years ago

wony1105 commented 3 years ago

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?