Skip to content

Commit 8125c8c

Browse files
committed
Switch to math highlighting and update legostic regresion get doc since it doesn't throw an an error
1 parent b1ce817 commit 8125c8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/pyspark/ml/classification.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def getThreshold(self):
159159
"""
160160
Gets the value of threshold or attempt to convert thresholds to threshold if set, or default
161161
value if neither are set.
162-
This conversion is equivalent to: {{{1 / (1 + thresholds(0) / thresholds(1))}}}.
162+
This conversion is equivalent to: :math:`\\frac{1}{1 + \\frac{thresholds(0)}{thresholds(1)}}`.
163163
"""
164164
self._checkThresholdConsistency()
165165
if self.isSet(self.thresholds):
@@ -188,7 +188,7 @@ def getThresholds(self):
188188
If :py:attr:`thresholds` is set, return its value.
189189
Otherwise, if :py:attr:`threshold` is set, return the equivalent thresholds for binary
190190
classification: (1-threshold, threshold).
191-
If neither are set, throw an error.
191+
If neither are set, return the default value.
192192
"""
193193
self._checkThresholdConsistency()
194194
if not self.isSet(self.thresholds) and self.isSet(self.threshold):

0 commit comments

Comments
 (0)