spmviz.mining.EpisodeSet#

class spmviz.mining.EpisodeSet(patterns, support, sids=None, n_sequences=None, db=None, params=None)[source]#

Bases: PatternSet

Frequent episodes with WINEPI frequencies and minimal occurrences.

Attributes:
frequencynumpy.ndarray

WINEPI frequency: fraction of the windows of width window that contain the episode.

occurrenceslist of numpy.ndarray

Minimal occurrences (t_start, t_end) of every serial episode (empty for parallel ones).

windowfloat
kind{“serial”, “parallel”}
property sids#

Supporting sequence indices of every pattern (computed from db if missing).

subset(idx)[source]#

A new pattern set with the selected patterns (order kept).

to_frame(style='arrow')[source]#

One row per pattern: label, support, relative support, length, confidences, parent.