Github user holdenk commented on a diff in the pull request:
https://github.com/apache/spark/pull/7909#discussion_r36150999
--- Diff:
mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala
---
@@ -110,9 +142,9 @@ class LogisticRegression(override val uid: String)
def setStandardization(value: Boolean): this.type = set(standardization,
value)
setDefault(standardization -> true)
- /** @group setParam */
- def setThreshold(value: Double): this.type = set(threshold, value)
- setDefault(threshold -> 0.5)
+ override def setThreshold(value: Double): this.type =
super.setThreshold(value)
+
+ override def getThreshold: Double = super.getThreshold
--- End diff --
Is there a particular reason why we overrode getThreshold to just call
super.getThreshold (and if we do maybe we should copy the docs)?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]