← Chapter 9. Machine learning basics for LLM builders
A tiny network learns, one step at a time
Swipe to change step
Step 1 of 8. A network with 9 parameters: two inputs, two hidden ReLU neurons, one sigmoid output. Its job is to say whether a point lies above the line x1 + x2 = 1. Our point is (1, 0.5), so the right answer is 1. x1 (1.0), highlighted. x2 (0.5), highlighted. h1 (ReLU) (?). h2 (ReLU) (?). y (sigmoid) (?). arrow from x1 to h1 (ReLU), labelled 0.5. arrow from x1 to h2 (ReLU), labelled -0.2. arrow from x2 to h1 (ReLU), labelled -0.3. arrow from x2 to h2 (ReLU), labelled 0.4. arrow from h1 (ReLU) to y (sigmoid), labelled v1 0.6. arrow from h2 (ReLU) to y (sigmoid), labelled v2 -0.4.
Keys: → or J next, ← or K back, Home and End jump, Space toggles auto-play when the diagram has focus.