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
dataset
required
A dataset containing the columns to be included in the calculation of pair-wise similarities.
Note: a subset of columns can always be selected in a recipe using the ds[[“column1”, “column2”, …]] syntax.
Or to exclude: ds[![“column1”, “column2”, …]].
Outputs
Outputs
column
required
A column containing for each row a list of row numbers identfying all other rows it is similar to.
column
required
A column containing for each row a list of weights identfying the “importance” of each
link to other rows identified in the
targets column (identifying how similar the rows are).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:"10"
Number of similar docs.Values must be in the following range:
boolean
default:"false"
Whether to use minhash as a similarity measure.
integer
default:"15"
Number of terms to use.Values must be in the following range:
integer
default:"2"
Minimum term frequency. (For TFIDF).Values must be in the following range:
integer
default:"2"
Minimum doc frequency. (For TFIDF).Values must be in the following range:
number
default:"0.9"
Maximum doc percentage. (For TFIDF).Values must be in the following range:
integer
default:"2"
Minimum of terms that should match.Values must be in the following range:
string
default:"[\\W0-9]{1,100}"
Regex to recognize as string separator.
string
default:"ES,EN"
Languages to use for stopwords.
supports ES, EN and both using commas “ES,EN”.Values must be one of the following:
ESENES,ENEN,ES