神经网络构建完之后使用LIME进行解释中代码出现保持

问题遇到的现象和发生背景

分类神经网络图已经跑出来了

用代码块功能插入代码,请勿粘贴截图

explainer<-lime::lime(trainset,network,quantile_bins = F)
explanation<-lime::explain(testset[14:80,],explainer,n_labels = 1,n_features = 2)

运行结果及报错内容

Error: The class of model must have a model_type method. See ?model_type to get an overview of models supported out of the box

我的解答思路和尝试过的方法

我觉得是testset[14:80,]中的参数没有设置好

我想要达到的结果

绘制出LIME图