| forward_pass | R Documentation |
Computes predictions from input data, an MLP architecture, and a parameter vector.
forward_pass(x, weights, architecture)
x |
A numeric matrix or data frame of input features. |
weights |
A numeric vector of MLP parameters. |
architecture |
An object created by |
A numeric matrix containing network outputs.
x <- matrix(rnorm(10), nrow = 5, ncol = 2)
arch <- mlp_architecture(
input_dim = 2,
layers = list(
dense_layer(3, activation = "relu"),
dense_layer(1, activation = "linear")
)
)
w <- initialize_weights(arch, seed = 123)
forward_pass(x, w, arch)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.