spmviz.datasets.load_prefixspan_example#
- spmviz.datasets.load_prefixspan_example()[source]#
The four-sequence example database of the PrefixSpan paper (Pei et al., 2001/2004).
<a(abc)(ac)d(cf)>,<(ad)c(bc)(ae)>,<(ef)(ab)(df)cb>,<eg(af)cbc>— the standard textbook example of sequences of itemsets (also thecontextPrefixSpanfile of SPMF).Examples
>>> db = load_prefixspan_example() >>> db.support("a (b c)"), db.support("(a b) c") (2, 2)
Examples using spmviz.datasets.load_prefixspan_example#
First steps: four sequences of the PrefixSpan paper
First steps: four sequences of the PrefixSpan paper