shap.utils.make_masks

shap.utils.make_masks(cluster_matrix)

从给定的聚类构建稀疏 CSR 掩码矩阵。

此函数已优化,因为图像的树可能非常大。