I tried to run the example of the explain function:
(installed the development version of the package from github).
library(MASS)
iris_test <- iris[1, 1:4]
iris_train <- iris[-1, 1:4]
iris_lab <- iris[[5]][-1]
model <- lda(iris_train, iris_lab)
explanation <- lime(iris_train, model)
# This can now be used together with the explain method
explain(iris_test, explanation, n_labels = 1, n_features = 2)
#> Error in coefs[1, 1] : invalid or not-yet-implemented 'Matrix' subsetting
I tried to run the example of the explain function: (installed the development version of the package from github).
Session info: