Choose a background color. The neural network calculates, neuron by neuron, whether the text should be white or black for better contrast. Follow the real math step by step.
These weights are set to decide color contrast (white vs. black).
| R | G | B | Bias | |
|---|---|---|---|---|
| H0 | -3.0 | -6.0 | -1.0 | +5.0 |
| H1 | 0.0 | -2.0 | +3.0 | -1.0 |
| H2 | +2.0 | +4.0 | -1.0 | -2.0 |
| H0 | H1 | H2 | Bias | |
|---|---|---|---|---|
| Output | +4.0 | +1.5 | -3.0 | -1.0 |
sigmoid(x) = 1 / (1 + e-x) — compresses any value into the interval (0, 1).