level_set_tree.LevelSetTree.get_leaf_nodes¶
-
LevelSetTree.
get_leaf_nodes
()¶ Return the indices of leaf nodes in the level set tree.
Returns: leaves : list
List of LST leaf node indices.
See also
Examples
>>> X = numpy.random.rand(100, 2) >>> tree = debacl.construct_tree(X, k=8, prune_threshold=5) >>> leaves = tree.get_leaf_nodes() >>> print(leaves) [1, 5, 6]