Open tsunghao-huang opened 3 years ago
There shouldn't be a restriction on the dimensionality of the input, e.g. MNIST is (1, 28, 28, 1)
. It's possible though that we make some implicit assumptions in the source code, I'll have a look into this.
Ah, I think the issue is that, indeed, for categorical variable support the assumption is that the input is 2D (tabular datasets). We would need to see if it's feasible to extend to more than 2D @arnaudvl .
I am using the CounterFactualProto to explain the prediction of a keras LSTM model. I have a input shape of (batch size, timestep, attributes) = (batch size, 86, 32). As indicated below.
And here is the error I got.
It seems the explainer has some problems taking 3D input. After a quick check into the source code, I think the explainer assumes 2D input only.
Would you please suggest any way around this?
Thanks.