Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looping with explain_prediction_df crashes #419

Open
waterboy96 opened this issue Jul 22, 2022 · 0 comments
Open

Looping with explain_prediction_df crashes #419

waterboy96 opened this issue Jul 22, 2022 · 0 comments

Comments

@waterboy96
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant