Watch gradient descent discover a rule
This network starts with imperfect weights and improves by comparing its answers with the target table. Training changes the connection strengths a little at a time to reduce loss.
- Choose a starting-weight option and inspect the initial results.
- Train one round and watch loss, accuracy, and weights change.
- Compare the results, then repeat the same cycle with the three-input model below.
Training Goal
Gradient descentUse gradient descent to learn the same cereal and salsa rule. The model should accept either food alone and reject both foods together or neither food.
Choose starting weights, train in rounds, and watch the probabilities, loss, and connection strengths change.
Training Controls
Soft neuronsTrainable Network
Editable weightsClick a row or toggle an input box to inspect one case. The table uses the current weights and probabilities.
Accept probability comes from comparing the Accept score with the Reject score; it is higher when Accept is winning by more.
| Cereal | Salsa | Target | Accept probability | Network says | Match |
|---|
Selected Row
Adding One More Input
Three inputsThis second model adds chips, which makes the rule less like a single simple switch. The network has to learn that chips are fine with salsa, but not with cereal.
- Accept cereal alone, salsa alone, chips alone, and chips with salsa.
- Reject no food, cereal with salsa, cereal with chips, and all three together.
Repeat the same cycle: set a starting point, train, then use the eight-row result table to see what changed.
Three-Input Training Controls
Gradient descentThree-Input Network
Editable weightsClick a row or toggle input boxes to inspect one food combination. Training tries to lower loss across all eight rows.
Accept probability comes from comparing the Accept score with the Reject score; it is higher when Accept is winning by more.
| Cereal | Salsa | Chips | Target | Accept probability | Network says | Match |
|---|