eli5 icon indicating copy to clipboard operation
eli5 copied to clipboard

Explaining multi-input model

Open dmirecki opened this issue 3 years ago • 1 comments

I am working on deep multi-input classification model (first input is an image, second input is a text).

Explaining text part while keeping image constant is easy, because in TextExplainer I am able to put any function. But now, I would like to explain image part with GradCam, keeping text constant. Is it possible? In eli5.show_prediction function I have to put keras model, which is multi-input. How to explain only image part in eli5?

Thanks in advance for any advice!

dmirecki avatar Apr 01 '21 10:04 dmirecki

Hey @dmirecki. If you're using keras can you pass a sublist of model.layers, passing only the image layers for explanation?

teabolt avatar Apr 07 '21 21:04 teabolt