Skip to content
StackDecode
AI & ML Atlas
Neural NetworksarchitectureInteractive simulation

Feedforward Neural Network

A network where information flows in one direction, from input to output.

The idea

There are no loops: each layer's output becomes the next layer's input. The whole network is just a composition of functions, so its output can be computed with a fixed sequence of matrix multiplications and activations.

ŷ = f_L(… f₂(W₂ f₁(W₁x + b₁) + 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. 1Take the input vector.
  2. 2Multiply by the first weight matrix and add the bias.
  3. 3Apply the activation function.
  4. 4Repeat layer by layer to the output.

Where it is used

Classification and regression on fixed-size inputs.

Watch out for

Has no memory, so it is not suited to variable-length sequences by itself.

Related