View source: R/fit_nn_helper.R
create_model | R Documentation |
Initialize a fully-connected multi-class neural network
create_model(
learning_rate = 0.001,
weight_decay = 0,
dropout = 0,
num_dense_layers = 1,
num_dense_nodes = 5,
activation = "relu",
seed = NULL,
input_shape,
num_classes
)
learning_rate |
Learning rate for Adam optimizer |
weight_decay |
L2 regulariation paramter |
dropout |
Dropout rate |
num_dense_layers |
Number of hidden layers |
num_dense_nodes |
Number of nodes per hidden layer (all hidden layers have the same size) |
activation |
Name of activation function ("relu", "softmax", "softplus", "elu", "tanh", "sigmoid", etc) |
seed |
Seed for weight initialization and dropout |
input_shape |
Number of features |
num_classes |
Number of classes |
A compiled Keras model
Zoe Guan summary(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.