You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by rx...@apache.org on 2014/01/16 05:15:47 UTC

[3/6] git commit: Indent two spaces

Indent two spaces


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

Branch: refs/heads/master
Commit: c2852cf42e0fa851b6708b6886b0d78ac5b697a6
Parents: 12386b3
Author: Frank Dai <so...@gmail.com>
Authored: Tue Jan 14 14:59:01 2014 +0800
Committer: Frank Dai <so...@gmail.com>
Committed: Tue Jan 14 14:59:01 2014 +0800

----------------------------------------------------------------------
 .../spark/mllib/classification/LogisticRegressionSuite.scala     | 2 +-
 .../scala/org/apache/spark/mllib/classification/SVMSuite.scala   | 2 +-
 .../scala/org/apache/spark/mllib/regression/LassoSuite.scala     | 4 ++--
 .../apache/spark/mllib/regression/LinearRegressionSuite.scala    | 4 ++--
 4 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/c2852cf4/mllib/src/test/scala/org/apache/spark/mllib/classification/LogisticRegressionSuite.scala
----------------------------------------------------------------------
diff --git a/mllib/src/test/scala/org/apache/spark/mllib/classification/LogisticRegressionSuite.scala b/mllib/src/test/scala/org/apache/spark/mllib/classification/LogisticRegressionSuite.scala
index f97eaf3..02ede71 100644
--- a/mllib/src/test/scala/org/apache/spark/mllib/classification/LogisticRegressionSuite.scala
+++ b/mllib/src/test/scala/org/apache/spark/mllib/classification/LogisticRegressionSuite.scala
@@ -81,7 +81,7 @@ class LogisticRegressionSuite extends FunSuite with BeforeAndAfterAll with Shoul
 
   def validatePrediction(predictions: Seq[Double], input: Seq[LabeledPoint]) {
     val numOffPredictions = predictions.zip(input).count { case (prediction, expected) =>
-        prediction != expected.label
+      prediction != expected.label
     }
     // At least 83% of the predictions should be on.
     ((input.length - numOffPredictions).toDouble / input.length) should be > 0.83

http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/c2852cf4/mllib/src/test/scala/org/apache/spark/mllib/classification/SVMSuite.scala
----------------------------------------------------------------------
diff --git a/mllib/src/test/scala/org/apache/spark/mllib/classification/SVMSuite.scala b/mllib/src/test/scala/org/apache/spark/mllib/classification/SVMSuite.scala
index 0f24fbb..3357b86 100644
--- a/mllib/src/test/scala/org/apache/spark/mllib/classification/SVMSuite.scala
+++ b/mllib/src/test/scala/org/apache/spark/mllib/classification/SVMSuite.scala
@@ -72,7 +72,7 @@ class SVMSuite extends FunSuite with BeforeAndAfterAll {
 
   def validatePrediction(predictions: Seq[Double], input: Seq[LabeledPoint]) {
     val numOffPredictions = predictions.zip(input).count { case (prediction, expected) =>
-        prediction != expected.label
+      prediction != expected.label
     }
     // At least 80% of the predictions should be on.
     assert(numOffPredictions < input.length / 5)

http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/c2852cf4/mllib/src/test/scala/org/apache/spark/mllib/regression/LassoSuite.scala
----------------------------------------------------------------------
diff --git a/mllib/src/test/scala/org/apache/spark/mllib/regression/LassoSuite.scala b/mllib/src/test/scala/org/apache/spark/mllib/regression/LassoSuite.scala
index 0a6a9f7..b2c8df9 100644
--- a/mllib/src/test/scala/org/apache/spark/mllib/regression/LassoSuite.scala
+++ b/mllib/src/test/scala/org/apache/spark/mllib/regression/LassoSuite.scala
@@ -40,8 +40,8 @@ class LassoSuite extends FunSuite with BeforeAndAfterAll {
 
   def validatePrediction(predictions: Seq[Double], input: Seq[LabeledPoint]) {
     val numOffPredictions = predictions.zip(input).count { case (prediction, expected) =>
-        // A prediction is off if the prediction is more than 0.5 away from expected value.
-        math.abs(prediction - expected.label) > 0.5
+      // A prediction is off if the prediction is more than 0.5 away from expected value.
+      math.abs(prediction - expected.label) > 0.5
     }
     // At least 80% of the predictions should be on.
     assert(numOffPredictions < input.length / 5)

http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/c2852cf4/mllib/src/test/scala/org/apache/spark/mllib/regression/LinearRegressionSuite.scala
----------------------------------------------------------------------
diff --git a/mllib/src/test/scala/org/apache/spark/mllib/regression/LinearRegressionSuite.scala b/mllib/src/test/scala/org/apache/spark/mllib/regression/LinearRegressionSuite.scala
index dd5aa85..406afba 100644
--- a/mllib/src/test/scala/org/apache/spark/mllib/regression/LinearRegressionSuite.scala
+++ b/mllib/src/test/scala/org/apache/spark/mllib/regression/LinearRegressionSuite.scala
@@ -37,8 +37,8 @@ class LinearRegressionSuite extends FunSuite with BeforeAndAfterAll {
 
   def validatePrediction(predictions: Seq[Double], input: Seq[LabeledPoint]) {
     val numOffPredictions = predictions.zip(input).count { case (prediction, expected) =>
-        // A prediction is off if the prediction is more than 0.5 away from expected value.
-        math.abs(prediction - expected.label) > 0.5
+      // A prediction is off if the prediction is more than 0.5 away from expected value.
+      math.abs(prediction - expected.label) > 0.5
     }
     // At least 80% of the predictions should be on.
     assert(numOffPredictions < input.length / 5)