eli5 icon indicating copy to clipboard operation
eli5 copied to clipboard

Looping with explain_prediction_df crashes

Open waterboy96 opened this issue 3 years ago • 0 comments

Hi,

I wanted to generate the explain_prediction_df for each of my observations in a test set, but when I loop over it it crashes eventually.

for i in range(len(X_test)): eli5.explain_prediction_df(clf, X_test[i,:]).to_csv('f{i}.csv')

I am getting a userwarning: X has feature names, but clf was fitted without feature names.

Do you have any idea what is going on or if there is an easier way to go about this?

waterboy96 avatar Jul 22 '22 15:07 waterboy96