Class FullyConnectedLayer

java.lang.Object
deepnetts.net.layers.AbstractLayer<TensorBase,TensorBase,Tensor2D>
deepnetts.net.layers.FullyConnectedLayer
All Implemented Interfaces:
Layer<TensorBase>, Serializable

public class FullyConnectedLayer extends AbstractLayer<TensorBase,TensorBase,Tensor2D>
Fully connected layer is used as a hidden layer in a neural network, and it has a single row of units/nodes/neurons connected to all neurons in previous and next layer. Previous layer can be input, fully connected, or flattened layer, while next layer can be fully connected or output layer. This layer calculates weighted sum of outputs from the previous layers (as matrix dot product), and applies activation function to all that sum. Mathematical formula is: Y = activation(W . X + B) where Y is output tensor (1D for single input or 2D for batch) W is a 2D weights tensor X is input tensor (1D for single input or 2D for batch) B is a 1D tensor of biases activation is an activation function
See Also: