Skip to content

Commit a1791dd

Browse files
authored
Merge pull request #744 from tidymodels/check-args-h2o
Add available activation function in `mlp()` for h2o engine
2 parents b6082f1 + 93e3ef4 commit a1791dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/mlp.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ check_args.mlp <- function(object) {
154154
act_funs <- c("linear", "relu", "elu", "tanh")
155155
} else if (object$engine == "keras") {
156156
act_funs <- c("linear", "softmax", "relu", "elu")
157+
} else if (object$engine == "h2o") {
158+
act_funs <- c("relu", "tanh")
157159
}
158160

159161
if (is.character(args$activation)) {

0 commit comments

Comments
 (0)