spmviz.summary.MDLSummary#

class spmviz.summary.MDLSummary(patterns, total_length, baseline_length, usage, covers, history)[source]#

Bases: object

Result of mdl_summary().

Attributes:
patternsPatternSet

Selected patterns (length at least 2), in code-table order.

total_length, baseline_lengthfloat

Description length (bits) with the selected patterns and with singletons only.

usagedict

Number of times each code (pattern tuple or singleton) is used in the cover.

coverslist of list of (start, stop, code)

Cover of every sequence; code is a pattern index (>= 0) or -1 for a singleton.

historypandas.DataFrame

Accepted candidates with the description length after each acceptance.

property compression#

Relative description length, total / baseline (smaller is better).