Skip to content

Commit

Permalink
cleaned up PR
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbradley committed Mar 17, 2016
1 parent 51b5c20 commit 3f02142
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,6 @@ class TrainValidationSplit @Since("1.5.0") (@Since("1.5.0") override val uid: St
@Since("1.5.0")
override def transformSchema(schema: StructType): StructType = transformSchemaImpl(schema)

@Since("1.5.0")
override def validateParams(): Unit = {
}

@Since("1.5.0")
override def copy(extra: ParamMap): TrainValidationSplit = {
val copied = defaultCopy(extra).asInstanceOf[TrainValidationSplit]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ class CrossValidatorSuite
.setEstimatorParamMaps(paramMaps)
.setEvaluator(eval)

cv.transformSchema(new StructType()) // This should pass.

val invalidParamMaps = paramMaps :+ ParamMap(est.inputCol -> "")
cv.setEstimatorParamMaps(invalidParamMaps)
intercept[IllegalArgumentException] {
Expand Down

0 comments on commit 3f02142

Please sign in to comment.