Skip to content

Commit

Permalink
[HOTFIX] Hotfix branch-1.4 building by removing avgMetrics in CrossVa…
Browse files Browse the repository at this point in the history
…lidatorSuite

Ref. #6905
ping yhuai

Author: Liang-Chi Hsieh <[email protected]>

Closes #6929 from viirya/hot_fix_cv_test and squashes the following commits:

b1aec53 [Liang-Chi Hsieh] Hotfix branch-1.4 by removing avgMetrics in CrossValidatorSuite.
  • Loading branch information
viirya authored and yhuai committed Jun 22, 2015
1 parent 2a7ea31 commit b836bac
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,12 @@ class CrossValidatorSuite extends SparkFunSuite with MLlibTestSparkContext {
val parent = cvModel.bestModel.parent.asInstanceOf[LinearRegression]
assert(parent.getRegParam === 0.001)
assert(parent.getMaxIter === 10)
assert(cvModel.avgMetrics.length === lrParamMaps.length)

eval.setMetricName("r2")
val cvModel2 = cv.fit(dataset)
val parent2 = cvModel2.bestModel.parent.asInstanceOf[LinearRegression]
assert(parent2.getRegParam === 0.001)
assert(parent2.getMaxIter === 10)
assert(cvModel2.avgMetrics.length === lrParamMaps.length)
}

test("validateParams should check estimatorParamMaps") {
Expand Down

0 comments on commit b836bac

Please sign in to comment.