spmviz.datasets.make_daily_routines#

spmviz.datasets.make_daily_routines(n_sequences=300, random_state=0)[source]#

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

A small, easy-to-read example: about a dozen everyday activities, a few typical orders and some noise. Timestamps are hours of the day; the persona is stored in attributes["persona"].

Examples

>>> db = make_daily_routines(50, random_state=1)
>>> db.n_sequences, "wake up" in db.alphabet
(50, True)

Examples using spmviz.datasets.make_daily_routines#

An everyday example: daily routines

An everyday example: daily routines

Gaps, spans and time windows

Gaps, spans and time windows

Time-aware icicles (LifeFlow)

Time-aware icicles (LifeFlow)

Chord diagram of everyday transitions

Chord diagram of everyday transitions

How support splits when sequences grow

How support splits when sequences grow

Pattern-induced higher-order networks: when history matters

Pattern-induced higher-order networks: when history matters

Lattices and UpSet plots

Lattices and UpSet plots

Chronograms and sequence frequency plots

Chronograms and sequence frequency plots

A summary in a few patterns: MDL

A summary in a few patterns: MDL