shap.utils.hclust_ordering

shap.utils.hclust_ordering(X, metric='sqeuclidean', anchor_first=False)

叶节点排序定义不明确,此函数选择保持附近样本相似的排序。