shap.utils.partition_tree

shap.utils.partition_tree(X: DataFrame, metric: str = 'correlation') ndarray[tuple[Any, ...], dtype[Any]]