spmviz.predict.predict_next#
- spmviz.predict.predict_next(source, observed, k=5, min_support=2)[source]#
Most likely next events after an observed partial sequence.
- Parameters:
- source
PatternSetorSequenceDatabase With a pattern set, the extensions of the matched context are ranked by confidence; with a database, the empirical continuation of the longest suffix seen at least
min_supporttimes is used (end of sequence included).- observed
pattern The events seen so far.
- k
int
- source
- Returns:
pandas.DataFrameColumns
next,probability(confidence),support,context.