Extracts the leaf node assignments for each observation across all trees in a trained GRF forest, then computes the \(n \times n\) proximity kernel matrix where entry \((i,j)\) is the proportion of trees in which observations \(i\) and \(j\) share a leaf node.
Details
This is a convenience function that calls get_leaf_node_matrix
followed by leaf_node_kernel. If you need both the leaf matrix
and the kernel, it is more efficient to call them separately.