Usage
The following example shows how the step can be used in a recipe.Examples
Examples
- Example 1
- Signature
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
column[list[category]|list[number]]
required
A column containing lists, where each row is a session, and each session a list of items.
Outputs
Outputs
column[list[number]]
required
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
integer
default:"48"
Length of embedding vectors.Values must be in the following range:
integer
default:"1"
Use Skip-Gram or CBOW.
Set this to 1 to use Skip-Gram, 0 for CBOW.Values must be in the following range:
integer
default:"20"
Update maximum for negative-sampling.
Only update these many word vectors.
number
default:"0.025"
Initial Learning Rate.Values must be in the following range:
[integer, string]
default:"5"
Word context window.
Must be either an integer or “auto”, “max” or “all”.
Options
Options
- integer
- string
integer
integer.Values must be in the following range:
integer
default:"3"
Minimum count of item in dataset. Otherwise filtered out.Values must be in the following range:
integer
default:"10"
Iterations.
How many epochs to run the algorithm for.Values must be in the following range:
number
default:"0"
Sample.
Percentage of most-common items to filter out.Values must be in the following range:
boolean
default:"true"
Whether to return normalized item vectors.