Search⌘ K

Understanding CNNs: Fully Connected Layers

Explore the role of fully connected layers within convolutional neural networks, understanding how they aggregate features learned by convolution and pooling layers to produce meaningful outputs for sentence classification. This lesson helps you grasp the mathematical structure and practical use of fully connected layers in CNNs to enhance classification tasks.

Fully connected layers

Fully connected layers are a fully connected set of weights from the input to the output. These fully connected weights are able to learn global information as they are connected from each input to each output. Also, having such layers of full connectedness allows us to combine features learned by the convolution layers preceding the fully connected layers globally to produce meaningful outputs.

Let’s define the output of the last convolution or pooling layer to be of size p×o×dp\times o \times d, where pp is the height of the input, ...