Github user sethah commented on a diff in the pull request:
https://github.com/apache/spark/pull/15149#discussion_r79852470
--- Diff: python/pyspark/ml/param/shared.py ---
@@ -469,10 +469,10 @@ def getStandardization(self):
class HasThresholds(Params):
"""
- Mixin for param thresholds: Thresholds in multi-class classification
to adjust the probability of predicting each class. Array must have length
equal to the number of classes, with values >= 0. The class with largest value
p/t is predicted, where p is the original probability of that class and t is
the class' threshold.
+ Mixin for param thresholds: Thresholds in multi-class classification
to adjust the probability of predicting each class. Array must have length
equal to the number of classes, with values > 0. The class with largest value
p/t is predicted, where p is the original probability of that class and t is
the class's threshold.
"""
- thresholds = Param(Params._dummy(), "thresholds", "Thresholds in
multi-class classification to adjust the probability of predicting each class.
Array must have length equal to the number of classes, with values >= 0. The
class with largest value p/t is predicted, where p is the original probability
of that class and t is the class' threshold.",
typeConverter=TypeConverters.toListFloat)
+ thresholds = Param(Params._dummy(), "thresholds","Thresholds in
multi-class classification to adjust the probability of predicting each class.
Array must have length equal to the number of classes, with values > 0. The
class with largest value p/t is predicted, where p is the original probability
of that class and t is the class's threshold.",
typeConverter=TypeConverters.toListFloat)
--- End diff --
This file should be generated via `python _shared_params_code_gen.py >
shared.py`, but looking at the space that was deleted maybe it wasn't?

## Advertising

---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org