marcotcr / lime

Lime: Explaining the predictions of any machine learning classifier
BSD 2-Clause "Simplified" License
11.41k stars 1.79k forks source link

Lime explain_instance dimension error #676

Open chunweihuangya opened 2 years ago

chunweihuangya commented 2 years ago

Hi,

I have some problem with explain_instance function, my input image shape = (300, 300, 3), but execute explain_instance raise ValueError: Found array with dim 3. Estimator expected <= 2. The following figure is my screenshot:

2022-06-15_161619

how to fix it? Thanks!

Ra1491 commented 1 year ago

Is there an update for this error? I am facing the same problem.

y-sheng commented 1 year ago

Hi, I think this might be an issue with the algorithm you are using, not LIME. What data was your predict_fn trained on?