liveBook · Manning

Sequence

As explained in Data Without Labels

A sequence is an ordered collection of events, where the order represents their relative occurrence positions.

A sequence is an ordered collection of events. In transaction data, each event groups items bought together, and the event order records how purchases unfold over time. A k-item sequence contains k items across its events. section 4.7.1

Order also matters when recurrent neural networks process sequential data: each time step uses information carried forward from the previous hidden state. section 8.7.1

Purchases as a sequence

(Milk, Cheese) → (Bread, Eggs) → (Cheese, Bread, Sugar) represents three successive transactions, with items grouped by transaction. section 4.7.1

Table 4.13 The dataset for sequence mining
Sequence ID
Sequence
1001
<(Milk) (Milk, Eggs, Bread) (Milk, Bread) (Sugar) (Bread, Apples)>
1002
<(Milk, Sugar) (Bread) (Eggs, Bread) (Milk, Cheese)>
1003
<(Cheese, Apples) (Milk, Eggs) (Sugar, Apples) (Bread) (Eggs)>
1004
<(Cheese, Bananas) (Milk, Apples) (Bread) (Eggs) (Bread)>

Compare four sample customer sequences, with each transaction shown as an event. section 4.7.1

How Data Without Labels covers it

How deep it goes
Defines events and ordered sequences, explains item counting, and connects sequence order to recurrent processing.
Examples
Uses ordered grocery purchases and a customer transaction dataset to illustrate event sequences.
What you can do after
Understand how transaction events form ordered sequences and why input order matters to recurrent networks.
How it connects
Connects sequences to events, sequence mining, SPADE, and recurrent neural networks.

Also explained in

Compare how 22 books explain sequence →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Data Without Labels. The section links point to the parts of the book it draws on.