Closed akshay-gupta123 closed 3 years ago
@akshay-gupta123 did you find a solution to this? I am also running into this. Thanks
@saraswat40 LIME expects a fixed 2D output, but due to annotation model predicts different number of outputs. Try to fix the output size, it will work.
@akshay-gupta123 thanks for responding. Yes, I think I got past this problem.
@akshay-gupta123 @saraswat40 hi I got the same problem for multiclass text classification.
"IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed"
an example of the prediction based as a below image
and codes for the lime as a below image.
how to turn above prediction (or output) to be 2D output as you did or can I have your addressed codes.
Thank you for your helps.
Did you solve this problem?
@saraswat40 LIME expects a fixed 2D output, but due to annotation model predicts different number of outputs. Try to fix the output size, it will work.
can you please explain more ?
Here is my code:
I am getting this error: