spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject spark git commit: [MINOR][ML] remove MLlibTestsSparkContext from ImpuritySuite
Date Fri, 13 Nov 2015 21:19:07 GMT
Repository: spark
Updated Branches:
  refs/heads/master 912b94363 -> bdfbc1dca


[MINOR][ML] remove MLlibTestsSparkContext from ImpuritySuite

ImpuritySuite doesn't need SparkContext.

Author: Xiangrui Meng <meng@databricks.com>

Closes #9698 from mengxr/remove-mllib-test-context-in-impurity-suite.


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

Branch: refs/heads/master
Commit: bdfbc1dcaf121a1a1239857adcf54cdfe82c26dc
Parents: 912b943
Author: Xiangrui Meng <meng@databricks.com>
Authored: Fri Nov 13 13:19:04 2015 -0800
Committer: Xiangrui Meng <meng@databricks.com>
Committed: Fri Nov 13 13:19:04 2015 -0800

----------------------------------------------------------------------
 .../test/scala/org/apache/spark/mllib/tree/ImpuritySuite.scala    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/bdfbc1dc/mllib/src/test/scala/org/apache/spark/mllib/tree/ImpuritySuite.scala
----------------------------------------------------------------------
diff --git a/mllib/src/test/scala/org/apache/spark/mllib/tree/ImpuritySuite.scala b/mllib/src/test/scala/org/apache/spark/mllib/tree/ImpuritySuite.scala
index 49aff21..14152cd 100644
--- a/mllib/src/test/scala/org/apache/spark/mllib/tree/ImpuritySuite.scala
+++ b/mllib/src/test/scala/org/apache/spark/mllib/tree/ImpuritySuite.scala
@@ -19,12 +19,11 @@ package org.apache.spark.mllib.tree
 
 import org.apache.spark.SparkFunSuite
 import org.apache.spark.mllib.tree.impurity.{EntropyAggregator, GiniAggregator}
-import org.apache.spark.mllib.util.MLlibTestSparkContext
 
 /**
  * Test suites for [[GiniAggregator]] and [[EntropyAggregator]].
  */
-class ImpuritySuite extends SparkFunSuite with MLlibTestSparkContext {
+class ImpuritySuite extends SparkFunSuite {
   test("Gini impurity does not support negative labels") {
     val gini = new GiniAggregator(2)
     intercept[IllegalArgumentException] {


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


Mime
View raw message