is a tuple of the number of input and output, i.e. (2 → 4)
is an activation function to be applied
is initial quadratic-level weight matrix Q for the case that it is restored from JSON (default: Seq())
is initial linear-level weight matrix L for the case that it is restored from JSON (default: Seq())
is initial bias weight matrix b for the case that it is restored from JSON (default: null)
Backward computation.
Backward computation.
to be propagated ( dG / dF
is propagated from higher layer )
of this layer (in this case, x = entry of dX / dw
)
of this layer (in this case, y
)
propagated error (in this case, dG/dx
)
Let this layer have function F composed with function X(x) = x1'.Q.x2 + L.x + b
and higher layer have function G. (Each output is treated as separately except propagation)
Weight is updated with: dG/dW
and propagate dG/dx
For the computation, we only used denominator layout. (cf. Wikipedia Page of Matrix Computation) For the computation rules, see "Matrix Cookbook" from MIT.
Sugar: Forward computation.
Sugar: Forward computation. Calls apply(x)
input matrix
output matrix
weights for update
is an activation function to be applied
is an activation function to be applied
Forward computation
Forward computation
input matrix
output matrix
accumulated delta values
Retrieve first input
Retrieve first input
input to be separated
first input
Retrive second input
Retrive second input
input to be separated
second input
Translate this layer into JSON object (in Play! framework)
Translate this layer into JSON object (in Play! framework)
JSON object describes this layer
Layer: Basic, Fully-connected Rank 3 Tensor Layer.