← All experiments

A small neural network experiment

What did
the test miss?

Both models learn whether a number falls inside an interval. One never saw examples above the upper bound. Change the inputs and compare their answers.

Model predictions for the current inputs
Model / ruleAnswerScore for “inside”

Scores are sigmoid outputs, not calibrated confidence. The 0.5 threshold determines the answer. Exact boundaries count as inside.

What to try

  1. Start at x = 0.5, lower = 0, upper = 1.
  2. Change only upper to 0.3. The correct answer flips. Does each model respond?
  3. Try x = upper. Boundary cases were excluded from training; even broader coverage does not settle them.
  4. Switch seeds. These are five independently trained models per condition.

The training generator used lower bounds between −1 and 1, widths between 0.2 and 1.2, and left a gap around exact boundaries. The demo accepts other values so you can explore failures; it does not promise accuracy outside that distribution.

About this experiment

Codex ran the training and evaluation. This page runs the saved 3 → 32 tanh → 1 networks in your browser. Your inputs stay on this page; they are not sent to a server. Changing inputs does not identify the model’s internal algorithm.

Test the repair next

What happens when training explicitly teaches the endpoints? Experiment 02 compares the repair with its neighboring regressions →

All experiments →

Read the companion article on Medium: My Small Neural Network Scored 100%. The Test Was Missing a Case.

Pass the experiment along