Measures#

Pattern measures, continuation distributions, contrasts and similarities.

Interestingness measures of sequential patterns follow the survey of Fournier-Viger et al. (2017) and the leverage of Petitjean et al. (2016); the continuation distribution \(P(e\mid\varphi)\) is the empirical distribution of the element that follows the earliest occurrence of a pattern, the basis of next-event prediction (Bántay et al., 2023) and of higher-order networks (Xu, Wickramarathne & Chawla, 2016).

Interestingness measures, continuation distributions, contrasts, pattern similarities.

Functions#

content_similarity(ps[, measure])

Similarity of the patterns themselves (their item strings).

continuation(db, pattern[, constraints, ...])

Distribution of the element that follows an occurrence of a pattern.

continuation_entropy(db, pattern, **kw)

Entropy (bits) of the continuation distribution of a pattern.

continuation_table(ps[, include_end, top])

Continuation statistics of every pattern: entropy, normalized entropy, most likely next items.

contrast(ps, groups[, positive, pseudocount])

Support of every pattern in two or more groups of sequences.

entropy(p)

Shannon entropy (bits) of a probability vector or a pandas Series.

pattern_counts(db, min_supports[, algorithm])

Number of all, closed and maximal patterns for a range of minimum supports.

pattern_measures(ps[, continuation_entropy, ...])

Interestingness measures of every pattern.

time_statistics(ps)

Span and gaps of the earliest occurrence of every pattern in every supporting sequence.

transaction_similarity(ps[, measure])

Similarity of the supporting sequence sets of every pair of patterns.

Constants#

END

str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str