Link sequence items¶
network
Create network links between consecutive pairs in a column of sequences.
Usage¶
The following are the step's expected inputs and outputs and their specific types.
link_sequence_items(
items: number|category,
sequences: list[category]|list[number]
) -> (targets: column, weights: column)
where the object {"param": value}
is optional in most cases and if present may contain any of the parameters described in the
corresponding section below.
Example¶
link_sequence_items(ds.items, ds.sequences) -> (ds.targets, ds.weights)
Inputs¶
items: column:number|category
A column of items. Should contain unique IDs identifying each item, and corresponding to the IDs in the sequences column.
sequences: column:list[category]|list[number]
Sequences (lists) of items, corresponding to the IDs in the items column.
Outputs¶
targets: column
A column containing for each item a list of row numbers identfying other items it will be linked to.
weights: column
A column containing for each item a list of weights identfying the "importance" of each
link to other items identified in the targets
column (counting how many times a consecutive
pair of items was found together in the sequences).