Is there an R package for Locally Interpretable Model Agnostic Explanations?

One of the researchers, Marco Ribeiro, who developed this method of explaining how black box models make their decisions has developed a Python implementation of the algorithm available through Github, but has anyone developed a R package? If so, can you report on using it?

I think you're talking about the lime Python package. No, there is no R port for the package. The implementation for the localized model requires enhancements to the existing machine-learning code (explained in the paper), a new implementation for R would be very time consuming.

You may want to take a look at this for interfacing Python in R.

My suggestion is stick with Python. The package is only useful for highly complicated non-linear models, which Python offers better support than R.

• To clarify - when you say 'the paper' do you mean 'Why Should I Trust You?' by Ribeiro, Singh and Guestrin, date stamped 16 Feb 2016 in arXiv? – Robert de Graaf Mar 23 '17 at 5:52
• @RobertdeGraaf Yes. It is a good paper. – HelloWorld Mar 23 '17 at 5:53

Yes, there is now a port to R, which is available here.

It purports to provide LIME explanations for any classifier that implements a predict() method accepting a type = 'prob' argument. I have not yet tested it myself.

• Great news! (note: comment made before trying it out ;-)) – Robert de Graaf May 17 '17 at 0:01