Binarizer (Spark 3.5.5 JavaDoc) (original) (raw)


public final class Binarizer
extends Transformer
implements HasThreshold, HasThresholds, HasInputCol, HasOutputCol, HasInputCols, HasOutputCols, DefaultParamsWritable
Binarize a column of continuous features given a threshold.
Since 3.0.0,Binarize can map multiple columns at once by setting the inputCols parameter. Note that when both the inputCol and inputCols parameters are set, an Exception will be thrown. Thethreshold parameter is used for single column usage, and thresholds is for multiple columns.
See Also:
Serialized Form