Repository: spark
Updated Branches:
  refs/heads/branch-1.6 ffd23baeb -> 6efe8b583


[MINOR][ML] remove MLlibTestsSparkContext from ImpuritySuite

ImpuritySuite doesn't need SparkContext.

Author: Xiangrui Meng <[email protected]>

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

(cherry picked from commit bdfbc1dcaf121a1a1239857adcf54cdfe82c26dc)
Signed-off-by: Xiangrui Meng <[email protected]>


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

Branch: refs/heads/branch-1.6
Commit: 6efe8b583183aa17d3c00bfe8ef02785e249eae5
Parents: ffd23ba
Author: Xiangrui Meng <[email protected]>
Authored: Fri Nov 13 13:19:04 2015 -0800
Committer: Xiangrui Meng <[email protected]>
Committed: Fri Nov 13 13:19:12 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/6efe8b58/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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to