shap.utils.hclust_ordering

shap.utils.hclust_ordering(X: ndarray[Any, dtype[Any]], metric: str = 'sqeuclidean', anchor_first: bool = False) ndarray[Any, dtype[Any]]

叶子排序是未定义的,此函数选择使相邻样本保持相似的排序。