External back ends#

Adapters to external sequential pattern miners.

Every adapter returns a PatternSet, so the visualizations of the package work on the results of any miner. Supporting sequence ids are taken from the back end when it reports them (SPMF) and computed otherwise.

algorithm

package

prefixspan-py

prefixspan (PyPI; PrefixSpan, BIDE closed, FEAT generators, top-k)

seq2pat

seq2pat (Fidelity, AAAI 2022; constraint-based)

gsppy

gsppy (GSP with an optional Rust back end; version 5.3 returned the same supports as the built-in miners but missed some patterns that repeat an item, e.g. ⟨product product⟩)

spmf

the SPMF Java library (spmf.jar; more than 200 algorithms)

Adapters to the prefixspan, seq2pat and gsppy packages and to SPMF.

Functions#

available()

Which external back ends can be used in this environment.

run(algorithm, db[, min_support, ...])

Run an external miner and return a PatternSet (called by spmviz.mine()).

spmf_command(jar, algorithm, infile, ...[, ...])

The SPMF command line for an algorithm.