← Labirynt szczęścia
PL EN DE

Neural Network Lab

A feedforward network with backpropagation built from scratch. No framework – every computation step is transparent.

1 · Example & data iTraining data are the examples from which the network is meant to discover the rule itself – never the rule directly. Each row is one example: inputs on the left, the desired outputs on the right (after the >). The network compares its prediction with the target and adjusts.
What to expect: the presets below load ready-made tasks (curves, boundaries, mini-images). You can also freely change values or type your own data. Rule of thumb: more and cleaner examples → better prediction; too few → the network guesses.

First row = column names. Separate inputs from outputs with ">". Values comma-separated. Any number of columns and rows.
iHolds part of the data out of training and measures the error only on it. This reveals overfitting: if the training error keeps dropping while the test error rises again, the network is memorising the data instead of the rule. Try "Line + noise" with a large network.
In the "Error curve" tab a second, red curve for the test data then appears.

3 · Curriculum (section-by-section training) iCurriculum: first limits training to part of the value range, then widens it – like a lesson plan that starts easy. This helps with difficult functions, because the network learns the rough shape before the details are added. „Auto-curriculum“ widens the window automatically during training.

Choose a window: train only a section of the curve (left, right, or center). Helps when the network gets stuck in the middle. Reference is the first input.
active: full range
Auto: starts with a small left window and automatically expands it during training until the full range is covered.
Epoch
0
Error (MSE)
Parameters
0
Data rows
0
Network structure
Loss curve
Target vs. Network
Plane · view
Plane · draw
Latent space
Error landscape
Mathematics

This neuron's computation iThis is exactly what the neuron does with the current numbers. You can trace it step by step on paper: multiply each input by its weight, sum everything plus the bias, then pass through the activation function.

Click a neuron in the "Network structure" tab to see its calculation step by step.

Test prediction iHere you enter your own input values and the trained network predicts the result – also for values not in the training data. This is how you check whether the network truly generalised the rule or only memorised the examples. In the boundary view you can click a point to copy its values here.

Enter input values and click "Compute".
Show full calculation