aboutsummaryrefslogtreecommitdiff
path: root/mllib/src/test/scala/org/apache
diff options
context:
space:
mode:
authorKousuke Saruta <sarutak@oss.nttdata.co.jp>2016-01-10 12:38:57 -0800
committerReynold Xin <rxin@databricks.com>2016-01-10 12:38:57 -0800
commite5904bb5e7d83b3731b312c40f7904c0511019f5 (patch)
tree50b23482a22bad1832b2e64fd002e144503dbdf4 /mllib/src/test/scala/org/apache
parentb78e028e37193a4e27b012f0b3c8343d850c5674 (diff)
downloadspark-e5904bb5e7d83b3731b312c40f7904c0511019f5.tar.gz
spark-e5904bb5e7d83b3731b312c40f7904c0511019f5.tar.bz2
spark-e5904bb5e7d83b3731b312c40f7904c0511019f5.zip
[SPARK-12692][BUILD][MLLIB] Scala style: Fix the style violation (Space before "," or ":")
Fix the style violation (space before , and :). This PR is a followup for #10643. Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp> Closes #10684 from sarutak/SPARK-12692-followup-mllib.
Diffstat (limited to 'mllib/src/test/scala/org/apache')
-rw-r--r--mllib/src/test/scala/org/apache/spark/mllib/classification/SVMSuite.scala2
-rw-r--r--mllib/src/test/scala/org/apache/spark/mllib/stat/StreamingTestSuite.scala2
2 files changed, 2 insertions, 2 deletions
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 ee3c85d09a..1a47344b68 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
@@ -45,7 +45,7 @@ object SVMSuite {
nPoints: Int,
seed: Int): Seq[LabeledPoint] = {
val rnd = new Random(seed)
- val weightsMat = new DoubleMatrix(1, weights.length, weights : _*)
+ val weightsMat = new DoubleMatrix(1, weights.length, weights: _*)
val x = Array.fill[Array[Double]](nPoints)(
Array.fill[Double](weights.length)(rnd.nextDouble() * 2.0 - 1.0))
val y = x.map { xi =>
diff --git a/mllib/src/test/scala/org/apache/spark/mllib/stat/StreamingTestSuite.scala b/mllib/src/test/scala/org/apache/spark/mllib/stat/StreamingTestSuite.scala
index 1142102bb0..50441816ec 100644
--- a/mllib/src/test/scala/org/apache/spark/mllib/stat/StreamingTestSuite.scala
+++ b/mllib/src/test/scala/org/apache/spark/mllib/stat/StreamingTestSuite.scala
@@ -27,7 +27,7 @@ import org.apache.spark.util.random.XORShiftRandom
class StreamingTestSuite extends SparkFunSuite with TestSuiteBase {
- override def maxWaitTimeMillis : Int = 30000
+ override def maxWaitTimeMillis: Int = 30000
test("accuracy for null hypothesis using welch t-test") {
// set parameters