build_MLP | R Documentation |
build_MLP
creates a sequential feedforward model (SLP, MLP) with stacked dense layers and optional dropout layers.
build_MLP(
features,
hidden = NULL,
dropout = NULL,
output = list(1, "linear"),
loss = "mean_squared_error",
optimizer = "adam",
metrics = c("mean_absolute_error")
)
features |
Number of features, e.g. returned by |
A data frame with two columns whereby the first column contains the number of hidden units and the second column the activation function. The number of rows determines the number of hidden layers. | |
dropout |
A numeric vector with dropout rates, the fractions of input units to drop or |
output |
A list with two elements whereby the first element determines the number of output units, e.g. returned by |
loss |
Name of objective function or objective function. If the model has multiple outputs, different loss on each output can be used by passing a dictionary or a list of objectives. The loss value that will be minimized by the model will then be the sum of all individual losses. |
optimizer |
Name of optimizer or optimizer instance. |
metrics |
Vector or list of metrics to be evaluated by the model during training and testing. |
A model object with stacked dense layers and dropout layers.
nunits
,
keras_model_sequential
, layer_dense
, layer_dropout
,
compile.keras.engine.training.Model
.
Other Single & Multi Layer Perceptron (SLP, MLP):
as_MLP_X()
,
as_MLP_Y()
,
as_tensor_1d()
,
as_tensor_2d()
,
as_tensor_3d()
,
fit_MLP()
,
load_weights_ANN()
,
nsamples()
,
nsubsequences()
,
ntimesteps()
,
nunits()
,
predict_ANN()
,
save_weights_ANN()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.