| decode_weights | R Documentation |
Converts a numeric parameter vector into layer-wise weight matrices and bias vectors.
decode_weights(weights, architecture, input_dim = NULL)
weights |
A numeric vector of MLP parameters. |
architecture |
An object created by |
input_dim |
Optional positive integer specifying the number of input
features. If |
A list containing layer-wise weight matrices and bias vectors.
arch <- mlp_architecture(
input_dim = 2,
layers = list(dense_layer(3), dense_layer(1, activation = "linear"))
)
w <- initialize_weights(arch, seed = 123)
decoded <- decode_weights(w, arch)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.