Skip to contents

Get activation functions of output layers.

Usage

get_output_activations(model)

Arguments

model

A keras model.

Value

Character vector with names of activation functions of model outputs.

Examples

if (FALSE) { # reticulate::py_module_available("tensorflow")
model <-  create_model_lstm_cnn(
  maxlen = 50,
  layer_lstm = 8,
  layer_dense = c(64, 2),
  verbose = FALSE)
get_output_activations(model)
}