thomasp85 / lime

Local Interpretable Model-Agnostic Explanations (R port of original Python package)
https://lime.data-imaginist.com/
Other
481 stars 109 forks source link

Errors with explaining images #97

Open expectopatronum opened 6 years ago

expectopatronum commented 6 years ago

Hi Thomas, recently I have been trying to use lime for images but I always get an error message (and since yesterday it's two different ones).

Both errors came after I called explanation <- explain(img_path, explainer, n_labels = 2, n_features = 3, n_superpixels = 10) (at first the first one, when I run the line again the second one came).

The first error message is:

Error in glm.fit(x = x_fit, y = y, weights = weights, family = gaussian()) : 
  NAs in V(mu)

The second error message is (which is really weird, I don know why it thinks it should be a text explainer): Error: is.text_explainer(x = explainer) is not TRUE

I'm not sure what I am doing wrong. I put my script, R session info, R workspace and test image into a shared OneDrive folder. Would be great if you could have a look at it! Thanks!

expectopatronum commented 6 years ago

I uploaded the information as a zip so I can remove the shared folder from my OneDrive: lime_bug.zip