Learning Lab
Neuron Playground
One neuron deciding yes or no from two facts — like approving a loan from income and credit score. Tune it by hand or let it train, and see the one problem it can never learn.
The question:How does one neuron make a yes/no decision from two facts — and learn to make it correctly?
Runs in your browser
The decision: Approve a loan only if the applicant has a steady income AND a good credit score.
- 1. The neuron gives each fact a weight (how much it counts) and adds a bias (how easily it says yes).
- 2. Drag the sliders until all four answers in the table are ✓ — the dashed line must separate the YES dots from the NO dots.
- 3. Or press Train and watch it learn the weights by itself, the way real networks do.
↑ Good creditSteady income →
- Neuron says Approve
- Neuron says Decline
- Neuron is right
- Neuron is wrong
2 of 4 cases wrong — keep adjusting, or press Train.
| Steady income | Good credit | Right answer | Neuron says | |
|---|---|---|---|---|
| No | No | Decline | Approve (62%) | |
| No | Yes | Decline | Decline (38%) | |
| Yes | No | Decline | Approve (82%) | |
| Yes | Yes | Approve | Approve (62%) |
score = 1.00 × steady income + -1.00 × good credit + 0.50
Approve if the score is above 0 (yes = 1, no = 0)