spmviz.summary.mdl_summary#
- spmviz.summary.mdl_summary(db, ps=None, max_patterns=30, min_support=0.02, max_length=8, prune=True)[source]#
Greedy MDL selection of contiguous patterns.
- Parameters:
- db
SequenceDatabase - ps
PatternSet,optional Candidates; by default the contiguous patterns (
max_gap=1) ofdbwithmin_supportandmax_length. Gapped candidates are ignored.- max_patterns
int Stop after accepting this many patterns.
- prunebool
After the greedy pass, drop accepted patterns whose removal shortens the description.
- db
- Returns: