We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 563cee9 commit 0577bb2Copy full SHA for 0577bb2
mllib-local/src/main/scala/org/apache/spark/ml/impl/Utils.scala
@@ -81,8 +81,9 @@ private[spark] object Utils {
81
82
/**
83
* 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`.
+ * overflow. This will happen when `x > 709.78` which is not a very large number.
+ * It can be addressed by rewriting the formula into `x + math.log1p(math.exp(-x))`
86
+ * when `x` is positive.
87
* @param x a floating-point value as input.
88
* @return the result of `math.log(1 + math.exp(x))`.
89
*/
0 commit comments