Codele / Machine learning: one neuron to deep learning
Train a tiny model in your browser
Run a real training loop: one neuron learns the AND rule, or the OR rule, from four examples, using gradient descent. You choose the settings.
- Training is a loop: guess, measure the loss, nudge the weights, repeat. Each pass is a round.
- The learning rate sets the size of each nudge. Too small is slow; too large can overshoot.
- The loss should fall round by round. Watching it is how you know learning is working.
- AND and OR are learned from just four examples. Real models use the same loop with millions of examples and billions of weights.
Loading the playable lesson…