Usage
The following example shows how the step can be used in a recipe.Examples
Examples
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
A column containing lists, where each row is a session, and each session a list of items.
Outputs
Outputs
A column containing item embeddings in the same order as the items input column. Embeddings are lists of numbers.
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
Length of embedding vectors.Values must be in the following range:
Use Skip-Gram or CBOW.
Set this to 1 to use Skip-Gram, 0 for CBOW.Values must be in the following range:
Update maximum for negative-sampling.
Only update these many word vectors.
Initial Learning Rate.Values must be in the following range:
Word context window.
Must be either an integer or “auto”, “max” or “all”.
Options
Options
integer.Values must be in the following range:
Minimum count of item in dataset. Otherwise filtered out.Values must be in the following range:
Iterations.
How many epochs to run the algorithm for.Values must be in the following range:
Sample.
Percentage of most-common items to filter out.Values must be in the following range:
Whether to return normalized item vectors.