eli5 icon indicating copy to clipboard operation
eli5 copied to clipboard

Occasional no highlight in show_prediction for images

Open abedkhooli opened this issue 4 years ago • 2 comments

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

abedkhooli avatar Mar 10 '20 07:03 abedkhooli

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)

teabolt avatar Mar 10 '20 16:03 teabolt

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

abedkhooli avatar Mar 11 '20 17:03 abedkhooli