View source: R/helpers_keras.R
build_keras_net | R Documentation |
Utility function to build a Keras MLP.
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() )
n_in |
|
n_out |
|
nodes |
|
layer_pars |
|
activation |
|
act_pars |
|
dropout |
|
batch_norm |
|
batch_pars |
|
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.
if (requireNamespaces("keras")) { build_keras_net(4L, 2L) build_keras_net(n_in = 4L, n_out = 2L, nodes = c(32L, 64L, 32L), activation = "elu", dropout = 0.4) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.