spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject spark git commit: [SPARK-16485][DOC][ML] Remove useless latex in a log messge.
Date Mon, 01 Aug 2016 13:54:21 GMT
Repository: spark
Updated Branches:
  refs/heads/master 64d8f37c7 -> 2a0de7dc9


[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.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/2a0de7dc
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/2a0de7dc
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/2a0de7dc

Branch: refs/heads/master
Commit: 2a0de7dc995844984d7dbb4238418967c6bbac70
Parents: 64d8f37
Author: Shuai Lin <linshuai2012@gmail.com>
Authored: Mon Aug 1 06:54:18 2016 -0700
Committer: Sean Owen <sowen@cloudera.com>
Committed: Mon Aug 1 06:54:18 2016 -0700

----------------------------------------------------------------------
 .../org/apache/spark/mllib/optimization/GradientDescentSuite.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/2a0de7dc/mllib/src/test/scala/org/apache/spark/mllib/optimization/GradientDescentSuite.scala
----------------------------------------------------------------------
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 1c9b7c7..37eb794 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) &&


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org


Mime
View raw message