General ML

General ML#

These chapters introduce the methods used later in the book on standard teaching datasets, where the answer is known and the focus can stay on the method. They build on one another, but each notebook runs on its own.

Foundations#

Further methods#

Each neural-network chapter has a PyTorch notebook, which writes the training loop out explicitly, and a Keras 3 notebook, which runs the same model through the shorter compile() and fit() interface on the same PyTorch backend. Each notebook ends with suggestions for changes to try.