aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShuai Lin <linshuai2012@gmail.com>2016-08-01 06:54:18 -0700
committerSean Owen <sowen@cloudera.com>2016-08-01 06:54:18 -0700
commit2a0de7dc995844984d7dbb4238418967c6bbac70 (patch)
tree00175bf6ccf5113884a7ef25068d97401aa5e237
parent64d8f37c717cbc9c1c3649cae4c7cc4e628cd72d (diff)
downloadspark-2a0de7dc995844984d7dbb4238418967c6bbac70.tar.gz
spark-2a0de7dc995844984d7dbb4238418967c6bbac70.tar.bz2
spark-2a0de7dc995844984d7dbb4238418967c6bbac70.zip
[SPARK-16485][DOC][ML] Remove useless latex in a log messge.
## What changes were proposed in this pull request? Removed useless latex in a log messge. ## How was this patch tested? Check generated scaladoc. Author: Shuai Lin <linshuai2012@gmail.com> Closes #14380 from lins05/fix-docs-formatting.
-rw-r--r--mllib/src/test/scala/org/apache/spark/mllib/optimization/GradientDescentSuite.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/mllib/src/test/scala/org/apache/spark/mllib/optimization/GradientDescentSuite.scala b/mllib/src/test/scala/org/apache/spark/mllib/optimization/GradientDescentSuite.scala
index 1c9b7c78e5..37eb794b0c 100644
--- a/mllib/src/test/scala/org/apache/spark/mllib/optimization/GradientDescentSuite.scala
+++ b/mllib/src/test/scala/org/apache/spark/mllib/optimization/GradientDescentSuite.scala
@@ -131,7 +131,7 @@ class GradientDescentSuite extends SparkFunSuite with MLlibTestSparkContext with
assert(
loss1(0) ~= (loss0(0) + (math.pow(initialWeightsWithIntercept(0), 2) +
math.pow(initialWeightsWithIntercept(1), 2)) / 2) absTol 1E-5,
- """For non-zero weights, the regVal should be \frac{1}{2}\sum_i w_i^2.""")
+ """For non-zero weights, the regVal should be 0.5 * sum(w_i ^ 2).""")
assert(
(newWeights1(0) ~= (newWeights0(0) - initialWeightsWithIntercept(0)) absTol 1E-5) &&