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!
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:
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!