Data sets#

Data sets: bundled examples, synthetic generators and benchmark fetchers.

loader

contents

load_prefixspan_example()

the 4-sequence textbook example of PrefixSpan (itemsets)

load_agrawal_srikant()

the 5-customer example of Agrawal & Srikant (1995)

load_melodies()

13 public-domain melodies as note sequences

load_chess_openings()

synthetic games from a 33-line opening book

load_clickstream()

UWV click sessions (BPI Challenge 2016), used by Bántay & Abonyi

load_alarm_log()

alarm/operator-action log of an alkylation plant, Bántay & Abonyi

make_daily_routines()

everyday routines of three personas

make_customer_journeys()

web-shop journeys (mobile vs desktop)

make_alarm_cascades()

interleaved alarm cascades of parallel sub-processes

make_planted_patterns()

random sequences with planted patterns

make_quest()

IBM Quest-style sequences of itemsets

fetch_spmf()

BIBLE, BMS1, BMS2, FIFA, KOSARAK10K, LEVIATHAN, MSNBC, SIGN, BIKE

Bundled examples, generators and the SPMF benchmark fetcher.

Functions#

benchmark_table()

The benchmarks known to fetch_spmf() with their published statistics.

fetch_spmf(name[, data_home, labels, ...])

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

get_data_home([data_home])

Cache directory of the downloaded benchmarks (created when missing).

load_agrawal_srikant()

The customer-sequence example of Agrawal & Srikant (1995), Mining sequential patterns.

load_alarm_log([as_frame, times, labels])

Alarm and operator-action log of an industrial hydrofluoric-acid alkylation plant.

load_chess_openings([n_games, random_state, ...])

Synthetic chess games drawn from a small opening book of 33 main lines.

load_clickstream([as_frame, codes, times])

Click sessions on a web portal of the Dutch Employee Insurance Agency (UWV).

load_melodies([unit])

Melodies of 13 well-known public-domain songs as note sequences.

load_prefixspan_example()

The four-sequence example database of the PrefixSpan paper (Pei et al., 2001/2004).

make_alarm_cascades([n_sequences, n_noise, ...])

Alarm floods made of interleaved cascades of parallel sub-processes.

make_customer_journeys([n_sequences, ...])

Visitor journeys in an online shop, with funnels, loops and abandonment.

make_daily_routines([n_sequences, random_state])

Morning-to-evening routines of three personas: early birds, commuters and remote workers.

make_planted_patterns([n_sequences, ...])

Random sequences with planted patterns (ground truth in the attributes).

make_quest([n_sequences, n_items, ...])

IBM Quest-style synthetic sequences of itemsets (Agrawal & Srikant, 1995).

Constants#