Book and documentation links

Books and documentation

The chapter notes develop the module’s main material. These books and official documentation provide alternative explanations, fuller proofs, and details of numerical interfaces.

Mathematical references

SourceRelevant material
Deisenroth, Faisal, and Ong, Mathematics for Machine LearningPart I: linear algebra, geometry, decompositions, vector calculus, probability, and optimization. The local notes specify their numerator-layout derivative convention explicitly.
Mitchell, Machine LearningChapter 1: tasks, experience, and performance measures.
Härdle, Smoothing Techniques: With Implementation in SKernel density estimation and smoothing; the source cited for the Old Faithful waiting times in chapter 1.
Blitzstein and Hwang, Introduction to ProbabilityProbability laws, conditioning, random variables, distribution families, and expectation.
Durrett, Probability: Theory and ExamplesChapter 1: measure-theoretic foundations, including σ-algebras, the construction of Lebesgue measure, random variables as measurable maps, and the integral behind expectation.
Wasserman, All of StatisticsStatistical inference, empirical distributions, estimation, confidence intervals, and testing.
Murphy, Probabilistic Machine Learning: An IntroductionProbability, statistics, decision theory, and information-theoretic foundations of probabilistic models.
Cover and Thomas, Elements of Information TheoryEntropy, typical sequences, source coding, entropy rates, channels, differential entropy, and rate–distortion.
MacKay, Information Theory, Inference, and Learning AlgorithmsConnections among coding, probabilistic inference, and learning.
Shalev-Shwartz and Ben-David, Understanding Machine LearningChapters 2–8 for statistical learning; further chapters on stability, online learning, and Rademacher complexity.
Mohri, Rostamizadeh, and Talwalkar, Foundations of Machine LearningGrowth functions, Rademacher complexity, margins, and generalization.

Numerical libraries

DocumentationRelevant material
NumPy array objectShape, axes, arithmetic types, and the array representation.
NumPy copies and viewsShared storage, indexing, reshaping, and mutation.
NumPy broadcastingAlignment of axes and singleton dimensions.
NumPy matrix multiplicationMatrix products, vector special cases, and batch dimensions.
NumPy least squaresLeast-squares solutions, numerical rank, and singular values.
NumPy linear algebraFactorizations, solves, eigenvalues, singular values, norms, and condition numbers used in chapter 2.
SciPy log-sum-expStable logarithmic probability calculations.
PyTorch autograd mechanicsRecorded dependencies, leaf gradients, accumulation, and gradient modes.
PyTorch torch.autogradgrad, backward, and the tensor attributes used in chapter 3’s backpropagation example.
PyTorch JVP and VJPDerivative products with explicit input directions and output seeds.
PyTorch LinearOutput-by-input parameter storage and the batched affine map.
PyTorch cross-entropyLogits, target representations, weighting, and reductions.
PyTorch optimizersGradient clearing, parameter updates, and optimizer state.
PyTorch data utilitiesDataset indexing, batching, and sampling order.

The computing examples notebook accompanies chapter 6. Additional API links appear beside the corresponding definitions in that chapter. Chapters 2 and 3 link each NumPy and PyTorch function where the text first discusses it and list every function their examples use in a final collapsed appendix.