spmviz.viz.tree_data#
- spmviz.viz.tree_data(obj, max_depth=4, min_count=1, anchor=None, groups=None, positive=None, max_children=None)[source]#
The tree behind the tree views: a prefix tree of a database or the pattern tree of a pattern set.
min_countdrops nodes passed by fewer sequences (for a pattern set: patterns with a lower absolute support);max_childrenkeeps only the most frequent children of every node, which tames wide trees. Withgroups(attribute name or labels) every node also gets the counts of the positive group and of the rest and theirlog2_ratio(contrast trees).