The fully-connected layers are where we map our input—the rows resulting from us convolving, max-pooling, and flattening our original extracted features—to our target class or classes. Here, each input is connected to every neuron or node in the following layer. The strength of these connections, or weights, and a bias term present in each node of the network are parameters of the model, optimized throughout the training process to minimize an objective function.
The final layer of our model will be our output layer, which gives us our model predictions. The number of neurons in our output layer and the activation function we apply to it are determined by the kind of problem we're trying to solve: regression, binary classification, or multi-class classification. We'll see exactly how to set up the fully-connected and output layers for a multi-class classification task when we start working with the Zalando Research fashion dataset in the next section.
With this fundamental knowledge, you're now ready to build your network!