Description
`Binarizer` takes a column of continuous features and output a column with binary features, where nonzeros (or values below a threshold) become 1 in the output.
val binarizer = new Binarizer() .setInputCol("numVisits") .setOutputCol("visited")
The output column should be marked as binary. We need to discuss whether we should process multiple columns or a vector column.
Attachments
Issue Links
- relates to
-
SPARK-7556 User guide update for feature transformer: Binarizer
- Resolved
- links to