Github user yanboliang commented on a diff in the pull request:
https://github.com/apache/spark/pull/10216#discussion_r49174887
--- Diff: python/pyspark/ml/classification.py ---
@@ -93,9 +93,7 @@ def __init__(self, featuresCol="features",
labelCol="label", predictionCol="pred
self._java_obj = self._new_java_obj(
"org.apache.spark.ml.classification.LogisticRegression",
self.uid)
#: param for threshold in binary classification, in range [0, 1].
- self.threshold = Param(self, "threshold",
- "Threshold in binary classification
prediction, in range [0, 1]." +
- " If threshold and thresholds are both set,
they must match.")
+ self.threshold =
LogisticRegression.threshold._copy_new_parent(self)
--- End diff --
```LogisticRegression.threshold``` is a placeholder to make the param
appear in the generated doc. After this change, it has more uses, should we
also change the annotation of that dummy param?
---
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]