shap.plots.image_to_text

shap.plots.image_to_text(shap_values)

绘制图像输入的 SHAP 值和文本输出。

参数:
shap_values[numpy.array]

SHAP 值数组列表。每个数组都有 shap (# 宽度 x 高度 x 通道 x 输出 tokens 数量)。每个样本一个数组