You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* package, which ironically are also not cutoffs. That is, a class may be selected even if its
183
-
* probability does not exceed the threshold.
184
-
*
185
-
* Array must have length equal to the number of classes, with values > 0.
186
-
* The class with largest value p/t is predicted, where p is the original probability of that
187
-
* class and t is the class's threshold.
188
-
*
179
+
* Param for 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 in multi-class classification to adjust the probability of predicting each class. "+
193
-
"Array must have length equal to the number of classes, with values > 0. "+
194
-
"The class with largest value p/t is predicted, where p is the original probability of that "+
195
-
"class and t is the class's threshold",
196
-
(t: Array[Double]) => t.forall(_ >0.0))
182
+
finalvalthresholds:DoubleArrayParam=newDoubleArrayParam(this, "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", (t: Array[Double]) => t.forall(_ >0))
Copy file name to clipboardExpand all lines: python/pyspark/ml/param/shared.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -472,7 +472,7 @@ class HasThresholds(Params):
472
472
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.
473
473
"""
474
474
475
-
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)
475
+
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)
0 commit comments