Usage
The following examples show how the step can be used in a recipe.Examples
Examples
- Example 1
- Example 2
- Signature
To calculate the logarithm of a column’s values:
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
Numeric input column to aplply function to.
Outputs
Outputs
The result of calling the specified function on the input data.
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
The name of the mathematical function to apply.Values must be one of the following:
absolute angle arccos arccosh arcsin arcsinh arctan arctanh around cbrt ceil conj conjugate cos cosh cumprod cumsum deg2rad degrees exp exp2 expm1 fabs fix floor gradient i0 imag log log10 log1p log2 nan_to_num nancumprod nancumsum nanprod nansum negative positive prod rad2deg radians real real_if_close reciprocal rint round round_ sign sin sinc sinh sqrt square sum tan tanh trunc