Skip to content

Commit

Permalink
rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
leahmcguire committed Jun 2, 2015
1 parent 4b8223e commit 36e71e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class CrossValidatorModel private[ml] (
}

override def copy(extra: ParamMap): CrossValidatorModel = {
val copied = new CrossValidatorModel(uid, bestModel.copy(extra).asInstanceOf[Model[_]], crossValidationMetrics.clone())
val copied = new CrossValidatorModel(uid, bestModel.copy(extra).asInstanceOf[Model[_]], avgMetrics.clone())
copyValues(copied, extra)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ class CrossValidatorSuite extends SparkFunSuite with MLlibTestSparkContext {
val parent = cvModel.bestModel.parent.asInstanceOf[LogisticRegression]
assert(parent.getRegParam === 0.001)
assert(parent.getMaxIter === 10)
<<<<<<< HEAD
assert(cvModel.avgMetrics.length == lrParamMaps.length)
=======
assert(cvModel.crossValidationMetrics.length == 4)
>>>>>>> rebasing
}

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

0 comments on commit 36e71e3

Please sign in to comment.