Skip to content

Commit

Permalink
TST: remove redundant unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
facaiy committed Mar 28, 2017
1 parent 5e0fbe3 commit 22ee03d
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,20 +178,6 @@ class DecisionTreeRegressorSuite
TreeTests.allParamSettings ++ Map("maxDepth" -> 0),
TreeTests.allParamSettings ++ Map("maxDepth" -> 0), checkModelData)
}

test("SPARK-20043: " +
"ImpurityCalculator builder fails for uppercase impurity type in model read/write") {
val rdd = TreeTests.getTreeReadWriteData(sc)
val data: DataFrame =
TreeTests.setMetadata(rdd, Map.empty[Int, Int], numClasses = 0)

val dt = new DecisionTreeRegressor()
.setImpurity("Variance")
.setMaxDepth(2)
val model = dt.fit(data)

testDefaultReadWrite(model)
}
}

private[ml] object DecisionTreeRegressorSuite extends SparkFunSuite {
Expand Down

0 comments on commit 22ee03d

Please sign in to comment.