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:
dbSequenceDatabase
psPatternSet, optional

Candidates; by default the contiguous patterns (max_gap=1) of db with min_support and max_length. Gapped candidates are ignored.

max_patternsint

Stop after accepting this many patterns.

prunebool

After the greedy pass, drop accepted patterns whose removal shortens the description.

Returns:
MDLSummary