I'm trying to run lime::explain and I get the following error. Can somebody please help? Thank you.
explainer <- lime::lime(
- x = x_train_tbl,
- model = model_keras,
- bin_continuous = FALSE
- )
explanation <- lime::explain(
- x_test_tbl[1:10,],
- explainer = explainer,
- n_labels = 1,
- n_features = 4,
- kernel_width = 0.5
- )
Error indimnames<-.data.frame
(*tmp*
, value = list(n)) :
invalid 'dimnames' given for data frame