Skip to content

Commit

Permalink
Getting TE model via getTargetEncoderModel
Browse files Browse the repository at this point in the history
  • Loading branch information
mn-mikke committed Jul 17, 2019
1 parent 2f7138d commit 0a09b5d
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -51,7 +51,8 @@ class H2OTargetEncoder(override val uid: String)
targetEncoderParameters.setTrain(trainingFrame._key)

val builder = new TargetEncoderBuilder(targetEncoderParameters)
builder.trainModel().get()
builder.trainModel().get() // Calling get() to wait until the model training is finished.
builder.getTargetEncoderModel()
}

override def copy(extra: ParamMap): H2OTargetEncoder = defaultCopy(extra)
Expand Down

0 comments on commit 0a09b5d

Please sign in to comment.