Feature Transformation -- Binarizer

Usage

ft_binarizer(x, input_col = NULL, output_col = NULL, threshold = 0.5)

Arguments

x
An object (usually a spark_tbl) coercable to a Spark DataFrame.
input_col
The name of the input column(s).
output_col
The name of the output column.
threshold
The numeric threshold.

Description

Apply thresholding to a column, such that values less than or equal to the threshold are assigned the value 0.0, and values greater than the threshold are assigned the value 1.0.