Usage
The following example shows how the step can be used in a recipe.Examples
Examples
The following call creates links between pairs of items A and B, if:
- A occurs in at least 7 sessions
- B occurs in at least 25% of sessions containing A
- The presence of A in a session makes the presence of B in the same session at least twice as likely.
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"
).
Inputs
Inputs
Outputs
Outputs
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
Parameters
Minimum Support.
Minimum support of a rule antecedent. If it is < 1 it will be taken as a proportion.
In any other case it will be expected as a positive integer representing the count.
Create link A->B only if A occurred in at least this many sessions.
Options
Options
number.Values must be in the following range:
Minimum Confidence.
Expressed as a rule as a percentage.
Include link A->B only if B occurred in at least this percentage of sessions also containing A.Values must be in the following range:
Minimum Lift.
Expressed as multipler/ratio. Include link A->B only if A makes the presence of B in the same
sessions at least this many times more likely.
Metric for link weight.Values must be one of the following:
itemset_support_abs
itemset_support_pct
filter_metric_abs
filter_metric_pct
antecedent_support_abs
antecedent_support_pct
consequent_support_abs
consequent_support_pct
rule_confidence_pct
rule_lift_abs
rule_lift_pct