c01.s01
A recipe with a promise
What does a program promise you?
Reader
Every section carries three layers at stable anchors: #core, #deepenand #research.
Chapter 1
What does a program promise you?
c01.s01
What does a program promise you?
c01.s02
When does repeating a step beat doing it once?
c01.s03
Why would a program accept another program?
c01.s04
How do you use a part without reading its insides?
c01.s05
What is the difference between a program and the thing it runs?
c01.s06
How do you know a program kept its contract?
Chapter 2
What must a table of examples carry for prediction to be possible?
c02.s01
What must a table of examples carry for prediction to be possible?
c02.s02
How can the closest example be the answer?
c02.s03
What does one wrong answer cost?
c02.s04
Why must the test examples be kept away?
c02.s05
When is one neighbour too few?
c02.s06
What is the learning problem, stated once and for all?
Chapter 3
What does "for all" commit you to?
c03.s01
What does "for all" commit you to?
c03.s02
How does a proof move from assumptions to conclusion?
c03.s03
When does assuming the opposite — or the previous case — help?
c03.s04
Why does a proof need sets and functions?
c03.s05
How do you prove that something cannot be listed?
c03.s06
Which mistakes look like proofs?
Chapter 4
How much does one run tell you?
c04.s01
How much does one run tell you?
c04.s02
How does the answer sneak into the input?
c04.s03
What happens when you remove one part?
c04.s04
How do you know what you ran?
c04.s05
What does a reproducible experiment look like?
c04.s06
Which graph tells the truth?
Chapter 5
How do we measure the work a program does?
c05.s01
How do we measure the work a program does?
c05.s02
What does the growth notation hide?
c05.s03
How does a recurrence predict the cost?
c05.s04
Why can comparison sorting not beat n log n?
c05.s05
When does saving a result beat recomputing it?
c05.s06
What does "hard" mean for a problem?
Chapter 6
How is a decimal number stored in 32 bits?
c06.s01
How is a decimal number stored in 32 bits?
c06.s02
Why does subtracting two correct numbers give a wrong answer?
c06.s03
How do you compute a probability without overflowing?
c06.s04
Why does the same arithmetic run at ten speeds?
c06.s05
What does a GPU do differently?
c06.s06
When can you use fewer bits on purpose?
Chapter 7
What makes a list of numbers a vector?
c07.s01
What makes a list of numbers a vector?
c07.s02
How few vectors do you need to build all the others?
c07.s03
What does a matrix do to a vector?
c07.s04
Which inputs vanish, and which outputs are reachable?
c07.s05
How does elimination find every solution?
c07.s06
Which four spaces does a matrix define?
Chapter 8
How do you measure the angle between two lists?
c08.s01
How do you measure the angle between two lists?
c08.s02
What is the closest point in a subspace?
c08.s03
Why is an orthogonal basis easier to use?
c08.s04
Where does the least-squares formula come from?
c08.s05
What is the best answer when no exact solution exists?
c08.s06
When does a good fit become a bad model?
Chapter 9
Which directions does a matrix leave alone?
c09.s01
Which directions does a matrix leave alone?
c09.s02
What happens when you apply the same matrix many times?
c09.s03
How do you find the dominant direction by repeating?
c09.s04
Why can a symmetric matrix be rotated into a diagonal one?
c09.s05
When is a quadratic form a bowl?
c09.s06
What does every matrix do, in three steps?
Chapter 10
What does it mean to get arbitrarily close?
c10.s01
What does it mean to get arbitrarily close?
c10.s02
What is the slope of a curved thing?
c10.s03
How do you replace a curve with a polynomial?
c10.s04
Which way is uphill?
c10.s05
How does a change in one input reach the output?
c10.s06
How do you know the formula is right?
Chapter 11
What rules must a degree of belief obey?
c11.s01
What rules must a degree of belief obey?
c11.s02
How many outcomes are there?
c11.s03
How does new information change the count?
c11.s04
How do you turn a likelihood into a belief?
c11.s05
When does one event tell you nothing about another?
c11.s06
Are probabilities frequencies or beliefs?
Chapter 12
How do you attach a number to an outcome?
c12.s01
How do you attach a number to an outcome?
c12.s02
What is the centre, and how wide is the spread?
c12.s03
Why does an average settle down?
c12.s04
Why does the bell curve keep appearing?
c12.s05
How surprising can a large deviation be?
c12.s06
What does a cloud of correlated numbers look like?
Chapter 13
What makes one guess better than another?
c13.s01
What makes one guess better than another?
c13.s02
Where does the error in an estimate come from?
c13.s03
Which parameter makes the data most likely?
c13.s04
How much does one observation tell you?
c13.s05
What happens to an estimate as the sample grows?
c13.s06
Why does a slightly wrong model sometimes predict better?
Chapter 14
What does the best straight line mean?
c14.s01
What does the best straight line mean?
c14.s02
Which assumptions does linear regression make?
c14.s03
Why shrink the coefficients?
c14.s04
How does a penalty delete features?
c14.s05
How does a line become a probability?
c14.s06
What do all generalised linear models share?
Chapter 15
How optimistic is a model about itself?
c15.s01
How optimistic is a model about itself?
c15.s02
How do you reserve data without wasting it?
c15.s03
How does a test set become a training set by accident?
c15.s04
How do you get an error bar from one sample?
c15.s05
What does a significance test actually test?
c15.s06
How do you look for the way a model is wrong?
Chapter 16
How much information is in one symbol?
c16.s01
How much information is in one symbol?
c16.s02
How do entropies combine?
c16.s03
What does one variable tell you about another?
c16.s04
How do you build the shortest code?
c16.s05
Why can no code beat entropy?
c16.s06
How fast can you send a message through noise?
Chapter 17
How does a gradient point to a better answer?
c17.s01
How does a gradient point to a better answer?
c17.s02
What happens when the step is too small or too large?
c17.s03
What does a bound on the curvature buy you?
c17.s04
How fast does descent reach the bottom?
c17.s05
What if each step sees only one example?
c17.s06
How do you set the step size over a long run?
Chapter 18
When do you use symbols, numbers or a program?
c18.s01
When do you use symbols, numbers or a program?
c18.s02
How does one input direction propagate?
c18.s03
How does one output direction propagate backwards?
c18.s04
What does the computer remember?
c18.s05
How do you train when the graph does not fit?
c18.s06
Which functions break the derivative?
Chapter 19
How does one unit draw a line?
c19.s01
How does one unit draw a line?
c19.s02
What can one unit never do?
c19.s03
How does a second layer bend the boundary?
c19.s04
Why does a nonlinearity change everything?
c19.s05
How do the gradients reach every weight?
c19.s06
What does a network actually learn?
Chapter 20
Where does the gradient go?
c20.s01
Where does the gradient go?
c20.s02
How do you start so that signals survive?
c20.s03
Why rescale the activations, and when should you drop units?
c20.s04
How does a skip connection make depth trainable?
c20.s05
What do momentum and Adam add to plain descent?
c20.s06
Which loss curve means which bug?
Chapter 21
Why does looking at neighbours help?
c21.s01
Why does looking at neighbours help?
c21.s02
What happens when a network reads one word at a time?
c21.s03
How does a model choose which words matter?
c21.s04
What is the arithmetic of attention?
c21.s05
How do attention and a small network fit together?
c21.s06
Does attention replace convolution?
Chapter 22
What does it mean to learn a distribution?
c22.s01
What does it mean to learn a distribution?
c22.s02
How do you learn a hidden cause?
c22.s03
How do you train a model that samples?
c22.s04
How does removing noise create an image?
c22.s05
How do you draw a new sample?
c22.s06
How do you compare two generators?
Chapter 23
What is different about learning from reward?
c23.s01
What is different about learning from reward?
c23.s02
How do you compare two futures?
c23.s03
What does the world need to remember?
c23.s04
How does a value summarize the future?
c23.s05
How do you compute the best policy when you know the world — and when you do not?
c23.s06
How do you improve a policy without knowing the world?
Chapter 24
How does a model learn to predict the next token?
c24.s01
How does a model learn to predict the next token?
c24.s02
What does a model learn from, and what objective does it use?
c24.s03
What happens when you multiply data, parameters and compute?
c24.s04
What is inside a hidden layer?
c24.s05
Can we explain a prediction?
c24.s06
How could a powerful model be aimed at the wrong thing?
Fixture. Only chapter 1 is loaded in this build. The exporter writessrc/data/chapters/cNN.json from ../book/chapters/cNN.md for each merged chapter.