Description Usage Arguments Value
Feed forward: calculate network state from its coefficients
1 2 | ## S3 method for class 'network'
feedforward(network, par, ...)
|
network |
a |
par |
A list or vector containing the parameters. If not included,
|
... |
(currently not used) |
a network_state
object, i.e. a list
of three
list
s, which each contain one matrix per layer.
inputs
: A list of input matrices for each layer. The first
layer's input is concatenated from the network's x
and z
matrices using cbind
, while subsequent inputs come from the
previous layer's output
.
pre_activations
: A list of pre_activation matrices for each
layer, equal to the matrix product of the layer's input
and its
weights
, plus its biases
.
outputs
: A list of outputs for each layer, produced by
applying the layer's activation function to the
pre_activations
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.