tests/testthat/_snaps/mlp_keras.md

all keras activation functions

Code
  mlp(mode = "classification", hidden_units = 2, penalty = 0.01, epochs = 2,
    activation = "invalid") %>% set_engine("keras", verbose = 0) %>% parsnip::fit(
    Class ~ A + B, data = modeldata::two_class_dat)
Condition
  Error in `parsnip::keras_mlp()`:
  ! `activation` should be one of: elu, exponential, gelu, hardsigmoid, linear, relu, selu, sigmoid, softmax, softplus, softsign, swish, and tanh, not "invalid".


Try the parsnip package in your browser

Any scripts or data that you put into this service are public.

parsnip documentation built on April 4, 2025, 1:53 a.m.