Skip to content
StackDecode
AI & ML Atlas
Deep LearningarchitectureInteractive simulation

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.

0.80.3h1h2h3out
  • 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).

1/5

Drag the two input sliders: the same fixed weights give a different answer each time.

Step by step

  1. 1Feed the inputs into the first layer.
  2. 2Each neuron computes a weighted sum plus bias, then applies an activation.
  3. 3Pass the outputs to the next layer until the output layer.
  4. 4Compare the output with the target using a loss.
  5. 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.

Related