3  Linear Classification in Neural Networks

Classification predicts a category rather than a numerical value. The training procedure remains the same as for regression: load data, compute model outputs and a loss, differentiate the loss, and update the parameters. The target representation, output layer, and loss must now describe a distribution over discrete classes.

This chapter derives softmax regression and cross-entropy, implements the model on Fashion-MNIST, and introduces common classification metrics. It then examines generalization and the consequences of distribution shift.

Resources and Further Reading

The classical machine-learning texts listed in the previous chapter Linear Regression in Neural Networks also cover classification, so we do not repeat them here. The references below focus on softmax regression, cross-entropy, calibration, and distribution shift. All are freely accessible online except where noted.

Tutorials and notes

Foundational papers

Books