Chapter 3 Quiz
Learning objectives
- Test your understanding of Chapter 3: the gradient descent step, the learning rate and the curvature, and stochastic and mini-batch descent with seeded orders
This quiz covers Chapter 3: gradient descent on the line from density to porosity in Ogbon-1's sandstone, its learning rate and the loss's curvature (Section 3.1), and the same fit taken one sample and one mini-batch at a time (Section 3.2). Its numbers are the book's kernel's on the book's own synthetic learning set.
Key Concepts Review
- The step: ; for the mean squared error the gradient is .
- The curvature: the Hessian ; along an eigenvector a step keeps of the error.
- The limit: the descent converges only for : below half the limit it creeps in, between half and the limit it swings across, past it it diverges.
- A flat direction: along each step keeps ; standardizing makes the curvatures equal. On Ogbon-1's sandstone in g/cc they differ 9055-fold.
- Mini-batches: a batch's gradient is the full gradient plus noise, the full gradient on average; small batches take many steps an epoch and wander about the answer at a constant rate.
- The seed: each epoch's order from a seeded shuffle, so a run replays to the last digit.