Skip to main content

Usage

The following example shows how the step can be used in a recipe.

Examples

  • Example 1
  • Signature
link_sequence_items(ds.items, ds.sequences) -> (ds.targets, ds.weights)

Inputs & Outputs

The following are the inputs expected by the step and the outputs it produces. These are generally columns (ds.first_name), datasets (ds or ds[["first_name", "last_name"]]) or models (referenced by name e.g. "churn-clf").
items
column[number|category]
required
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]]
required
Sequences (lists) of items, corresponding to the IDs in the items column.
targets
column
required
A column containing for each item a list of row numbers identfying other items it will be linked to.
weights
column
required
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).

Configuration

The following parameters can be used to configure the behaviour of the step by including them in a json object as the last “input” to the step, i.e. step(..., {"param": "value", ...}) -> (output).

Parameters

This step doesn’t expect any configuration.
I