Am working on a binary classification problem with 1000 rows and 15 features.
Currently am using Lime to explain the predictions of each instance.
I use the below code to generate explanations for full test dataframe
test_indx_list = X_test.index.tolist()
test_dict={}
for n in test_indx_list:
exp = explainer.explain_instance(X_test.loc[n].values, model.predict_proba, num_features=5)
a=exp.as_list()
test_dict[n] = a
But this is not efficient. Is there any alternative approach to generate explanation/ get feature contributions quicker?