spmviz.datasets.fetch_spmf#

spmviz.datasets.fetch_spmf(name, data_home=None, labels=True, timeout=60.0, download=True)[source]#

Load a benchmark sequence database (downloaded once, then read from the cache).

Parameters:
namestr

One of BIBLE, BMS1, BMS2, FIFA, KOSARAK10K, LEVIATHAN, MSNBC, SIGN, BIKE (case-insensitive).

data_homepath, optional

Cache directory (default ~/spmviz_data or $SPMVIZ_DATA).

labelsbool

For BIBLE and LEVIATHAN, also fetch the word list so that items print as words.

downloadbool

If False, only read from the cache.

Returns:
SequenceDatabase

Utility annotations of mirror files (item[utility]) are dropped.

Examples using spmviz.datasets.fetch_spmf#

Benchmark databases of sequential pattern mining

Benchmark databases of sequential pattern mining