An activation function applies a nonlinearity between neural-network layers, allowing stacked affine transformations to represent more expressive functions than a purely linear network. section 10.1
Choose the activation according to the layer's role and prediction task:
- Use ReLU as a common hidden-layer nonlinearity in a multilayer perceptron. section 10.1
- Use softmax at a classification output to convert real-valued inputs into class probabilities summing to one. section 10.1
- Use the identity function at a regression output. section 10.1
Figure 10.1 MLP architecture
Use the MLP architecture figure to locate activation functions between affine layers and distinguish hidden-layer and output-layer roles. section 10.1













