Prediction#

Next-event prediction from frequent sequences (online scenario matching).

An unfinished event sequence (an alarm flood in progress, a session on a web site) is matched against the frequent sequences: the longest suffix of the observed events that is itself a frequent sequence becomes the context, and its one-event extensions, weighted by their confidence, predict what comes next (Bántay, Sas, Dörgő & Abonyi, 2023, scenario prediction from frequent event patterns; Fournier-Viger et al., 2015, sequence prediction).

Next-event prediction from the longest matching frequent sequence.

Functions#

match_context(ps, observed[, min_children])

Longest suffix of observed that is a pattern of ps with at least min_children extensions.

predict_next(source, observed[, k, min_support])

Most likely next events after an observed partial sequence.