Artificial Neural Networks (ANN)
Layers of simple units that learn a function from examples.
The idea
Each neuron computes a weighted sum of its inputs, adds a bias and passes it through a non-linear activation. Stacking layers lets the network build complicated functions from simple pieces: early layers detect simple patterns, later layers combine them. Training adjusts the weights by backpropagation.
a = σ(Wx + b)
Watch it run
This is a real computation, not a drawing. Pause, step, change the settings, or try new random data.
- activation
- not computed yet
The two inputs enter the network: x1 = 0.8, x2 = 0.3. Thick lines are strong weights (blue positive, orange negative).
Drag the two input sliders: the same fixed weights give a different answer each time.
Step by step
- 1Feed the inputs into the first layer.
- 2Each neuron computes a weighted sum plus bias, then applies an activation.
- 3Pass the outputs to the next layer until the output layer.
- 4Compare the output with the target using a loss.
- 5Backpropagate the error and update the weights.
Where it is used
General-purpose function approximation, tabular prediction, the base of all deep learning.
Watch out for
Needs enough data, careful scaling and regularisation; it is a black box.