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#
|
Similarity of the patterns themselves (their item strings). |
|
Distribution of the element that follows an occurrence of a pattern. |
|
Entropy (bits) of the continuation distribution of a pattern. |
|
Continuation statistics of every pattern: entropy, normalized entropy, most likely next items. |
|
Support of every pattern in two or more groups of sequences. |
|
Shannon entropy (bits) of a probability vector or a pandas Series. |
|
Number of all, closed and maximal patterns for a range of minimum supports. |
|
Interestingness measures of every pattern. |
|
Span and gaps of the earliest occurrence of every pattern in every supporting sequence. |
|
Similarity of the supporting sequence sets of every pair of patterns. |
Constants#
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str |