Skip to content

Commit 0577bb2

Browse files
committed
fix doc
1 parent 563cee9 commit 0577bb2

File tree

1 file changed

+3
-2
lines changed
  • mllib-local/src/main/scala/org/apache/spark/ml/impl

1 file changed

+3
-2
lines changed

mllib-local/src/main/scala/org/apache/spark/ml/impl/Utils.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ private[spark] object Utils {
8181

8282
/**
8383
* When `x` is positive and large, computing `math.log(1 + math.exp(x))` will lead to arithmetic
84-
* overflow. This will happen when `x > 709.78` which is not a very large number.
85-
* It can be addressed by rewriting the formula into `x + math.log1p(math.exp(-x))` when `x > 0`.
84+
* overflow. This will happen when `x > 709.78` which is not a very large number.
85+
* It can be addressed by rewriting the formula into `x + math.log1p(math.exp(-x))`
86+
* when `x` is positive.
8687
* @param x a floating-point value as input.
8788
* @return the result of `math.log(1 + math.exp(x))`.
8889
*/

0 commit comments

Comments
 (0)