View source: R/build_feature_NN.R
build_feature_NN | R Documentation |
Builds and compiles a neural network using the keras library. The architecture of the neural network is configurable using the
build_feature_NN(
num_units,
learning_rate = 0.001,
activation = "relu",
kernel_initializer = "glorot_normal",
kernel_regularizer = NULL,
bias_regularizer = NULL,
bias_initializer = "zeros",
activity_regularizer = NULL,
loss = "mean_squared_error",
name = NULL,
...
)
num_units |
Defines the architecture of each neural network. If a scalar value is provided, a single hidden layer neural network with that number of units is used. If a vector of values is provided, a multi-layer neural network with each element of the vector defining the number of hidden units on each hidden layer is used. |
learning_rate |
Learning rate for the neural network optimizer. |
activation |
Activation function of the neural network. Defaults to |
kernel_initializer |
Kernel initializer for the Dense layers.
Defaults to Xavier Initializer ( |
kernel_regularizer |
Optional regularizer function applied to the kernel weights matrix. |
bias_regularizer |
Optional regularizer function applied to the bias vector. |
bias_initializer |
Optional initializer for the bias vector. |
activity_regularizer |
Optional regularizer function applied to the output of the layer |
loss |
Loss function to use during neural network training. Defaults to the mean squared error. |
name |
Neural Network name. |
... |
Arguments passed on to
|
compiled Neural Network
Ines Ortega-Fernandez, Marta Sestelo.
Kingma, D. P., & Ba, J. (2014). Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.