The output layer is the final layer of a neural network that produces the model’s prediction or result. Its structure depends on the task, such as a single value for regression or multiple class scores for classification.
The "final" layer of a neural network. The output layer contains the prediction. The following illustration shows a small deep neural network with an input layer, two hidden layers, and an output layer: !A neural network with one input layer, two hidden layers, and one output layer. The input layer consists of two features. The first hidden layer consists of three neurons and the second hidden layer consists of two neurons. The output layer consists of a single node.