-
- Downloads
[SPARK-13097][ML] Binarizer allowing Double AND Vector input types
This enhancement extends the existing SparkML Binarizer [SPARK-5891] to allow Vector in addition to the existing Double input column type. A use case for this enhancement is for when a user wants to Binarize many similar feature columns at once using the same threshold value (for example a binary threshold applied to many pixels in an image). This contribution is my original work and I license the work to the project under the project's open source license. viirya mengxr Author: seddonm1 <seddonm1@gmail.com> Closes #10976 from seddonm1/master.
Showing
- mllib/src/main/scala/org/apache/spark/ml/feature/Binarizer.scala 45 additions, 17 deletions...rc/main/scala/org/apache/spark/ml/feature/Binarizer.scala
- mllib/src/test/scala/org/apache/spark/ml/feature/BinarizerSuite.scala 36 additions, 0 deletions...st/scala/org/apache/spark/ml/feature/BinarizerSuite.scala
Loading
Please register or sign in to comment