build_keras_net {survivalmodels} | R Documentation |
Build a Keras Multilayer Perceptron
Description
Utility function to build a Keras MLP.
Usage
build_keras_net(
n_in,
n_out,
nodes = c(32L, 32L),
layer_pars = list(),
activation = "linear",
act_pars = list(),
dropout = 0.1,
batch_norm = TRUE,
batch_pars = list()
)
Arguments
n_in |
|
n_out |
|
nodes |
|
layer_pars |
|
activation |
|
act_pars |
|
dropout |
|
batch_norm |
|
batch_pars |
|
Details
This function is a helper for R users with less Python experience. Currently it is limited to simple MLPs and with identical layers. More advanced networks will require manual creation with keras.
Value
No return value.