Skip to content

Occasional no highlight in show_prediction for images #368

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

Open
abedkhooli opened this issue Mar 10, 2020 · 2 comments
Open

Occasional no highlight in show_prediction for images #368

abedkhooli opened this issue Mar 10, 2020 · 2 comments

Comments

@abedkhooli
Copy link

I use ktrain wrapper library for Keras which calls
eli5.show_prediction(model, x) [eli5: '0.10.1']
and for some images, there is no indication (color highlight) on the predicted image (both correct and incorrect classification). Ex:
image

@teabolt
Copy link
Contributor

teabolt commented Mar 10, 2020

HI @abedkhooli,

Could you post the result of eli5.explain_prediction(model, x)? This should show if it's a problem with the explanation or with the color highlight.

You can also try changing the color highlight like this: eli5.show_prediction(model, x, alpha_limit=1.0, colormap=matplotlib.cm.cividis)

@abedkhooli
Copy link
Author

Ktrain uses a forked version with tf.keras and TF2.x, so these won't work. I tried with one less epoch and got it highlighted correctly!
image

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

2 participants