Skip to content

Link sequence items


Create network links between consecutive pairs in a column of sequences.


The following are the step's expected inputs and outputs and their specific types.

Step signature
    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 call (in recipe editor)
link_sequence_items(ds.items, ds.sequences) -> (ds.targets, ds.weights)


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.


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).