leaf_tree_

property PLSCAN.leaf_tree_: LeafTree

The leaf-cluster hierarchy across all minimum cluster sizes.

The leaf tree tracks which HDBSCAN* condensed-tree segments are leaves (i.e. have no child clusters) as the minimum cluster size parameter varies. It is an alternative visualisation to condensed_tree_ that makes the PLSCAN filtration explicit.

Selected clusters (those corresponding to the fitted min_cluster_size) are highlighted when plotted. The object supports plot(), to_networkx(), to_numpy(), and to_pandas().