1  Preliminaries

Consider the smallest complete learning problem: load a table of examples, represent it as tensors, compute a prediction and a loss, differentiate that loss, and decide whether the result is plausible. Each step fails without a specific tool. Arrays store and transform the data; linear algebra expresses the prediction; calculus and automatic differentiation supply its gradients; probability distinguishes a stable pattern from sampling noise; and framework documentation resolves the implementation details.

This chapter develops those prerequisites in that order, beginning with tensor and tabular-data operations and ending with a practical method for consulting framework documentation.

The treatment is intentionally concise. Each section introduces the notation and operations needed by later chapters; the mathematics appendices develop the same subjects in greater depth.

Resources and Further Reading

The references below provide fuller treatments of array programming, data preprocessing, linear algebra, calculus, probability, and framework documentation. All are freely accessible online except where noted.

Books

Courses and video lectures

Tutorials, notes, and documentation