我尝试使用shap来进行特征重要性分析。我正在使用keras,我想得到一个条形图和小提琴图。用我的DNN,我得到了类似的东西:
然而,当我在我的SimpleRNN上尝试它时,我遇到了形状问题。由于维度的原因,我在静态模型中使用的KernelExplainer不起作用。DeepExplainer也不起作用。", line 103, in
我试图从简单的LSTM模型中绘制总结。当我打电话给ValueError: shape mismatch: objects cannot be broadcast to a single shape时,我得到了shap.summary_plotimport numpy as npfrom tensorflow.keras.models import Sequential
from tensorfl
我正在使用Kerassurgeon模块进行剪枝,当我在google colab.It中使用VGG-16时,我遇到了这个错误,对其他models.Can来说很好,有人帮我解决了这个问题。---> 17 model_new = surgeon.operate()<br>
>>/usr/local/lib/python3.6/dist-packages(n) for n i