Github user tengpeng commented on a diff in the pull request:
https://github.com/apache/spark/pull/20732#discussion_r172059794
--- Diff: mllib/src/main/scala/org/apache/spark/ml/feature/Binarizer.scala
---
@@ -45,66 +47,117 @@ final class Binarizer @Since("1.4.0") (@Since("1.4.0")
override val uid: String)
* The features greater than the threshold, will be binarized to 1.0.
* The features equal to or less than the threshold, will be binarized
to 0.0.
* Default: 0.0
+ *
* @group param
*/
@Since("1.4.0")
val threshold: DoubleParam =
- new DoubleParam(this, "threshold", "threshold used to binarize
continuous features")
--- End diff --
This is because the original code exceeds 100 length limit and failed Scala
style check.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]