After obtaining accuracy
metric from my keras
binary classification model, I need know what the model made the predictions. So, I'm interested in variable importance. I use lime
package.
library(lime)
explainer <- lime (
x = x_train,
model = model_keras,
bin_continuous = FALSE)
explanation <- explain (
x_test[1:20,], # Show first 20 samples
explainer = explainer,
n_labels = 1,
n_features = 5)
Explain
function gives me the following error in py_get_attr_impl
function: AttributeError: 'function' object has no attribute 'func_name'.
I have compiled keras
model with R
, but this Issue seems to be that error comes from Python version. Problems with Reticulate
package?