Error in `dimnames<-.data.frame`(`*tmp*`, value = list(n)) :
`invalid 'dimnames' given for data frame
当我运行以下代码时,就会发生该错误
explanation <- lime::explain(
(test),
explainer = explainer,
n_labels = 1,
n_features = 4,
kernel_width = 0.5)
test是一个数据行,具有10行和35列,数字类型为num。
解释器是
explainer <- lime::lime(
x = x_train_tbl,
model = model_keras,
bin_continuous = FALSE)
在打印时会显示每个属性的摘要统计信息