liveBook · Manning

Output layer

As explained in Grokking Machine Learning

The neural-network layer that produces the model's final outputs or predictions.

The output layer is the final layer of a neural network. Its nodes produce the model’s predictions; its size and activation can vary with the example architecture. section 10.1 section 10.3

Classification outputs

A Keras classifier for two classes ends with two softmax units; an MNIST digit classifier ends with ten. The predicted class can be selected from the output values. section 10.3

Figure 10.21 The architecture that we will use to classify our dataset. It contains two hidden layers: one of 128 and one of 64 nodes. The activation function between them is a ReLU, and the final activation function is a softmax.

See the network diagram, including its final softmax layer. section 10.3

How Grokking Machine Learning covers it

How deep it goes
Defines its position and illustrates output sizes and activations in classification architectures.
Examples
Uses a one-node output in a network diagram and two- and ten-unit softmax outputs for classification.
What you can do after
Apply it via Keras by adding a Dense output layer with two or ten softmax units for classification.
How it connects
Links neural-network architecture to hidden layers, activation functions, and classification predictions.

Also explained in

Compare how 6 books explain output layer →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Grokking Machine Learning. The section links point to the parts of the book it draws on.