Github user jkbradley commented on a diff in the pull request:
https://github.com/apache/spark/pull/5137#discussion_r27424658
--- Diff: python/pyspark/mllib/classification.py ---
@@ -47,14 +48,25 @@ def setThreshold(self, value):
Sets the threshold that separates positive predictions from
negative
predictions. An example with prediction score greater than or equal
to this threshold is identified as an positive, and negative
otherwise.
+ It was used for binary classification only.
"""
self._threshold = value
+ def threshold(self):
--- End diff --
Could you make this a property, please?
---
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]