# The multilayer perceptron
An MLP (multilayer perceptron) is a network of connected units.
The analogy comes from the way neurons pass signals. A neuron's dendrites receive signals from several other neurons. Its axon carries the outgoing signal on to the next neurons, releasing neurotransmitters at the connections.
In an MLP, a unit takes inputs from several units in the previous layer, applies a function f(x) and passes its output to the next layer.
Here is a simplified example:
a12=g(θ101x0+θ111x1+θ121x2+θ131x3)
a22=g(θ201x0+θ211x1+θ221x2+θ231x3)
a32=g(θ301x0+θ311x1+θ321x2+θ331x3)
y=g(θ102a02+θ112a12+θ122a22+θ132a32)

In the diagram, xi denotes an input, ai2 a hidden-layer activation, y the output and θj the weights.
The three hidden units and one output unit together make up this MLP.
In practice, the output layer can have more than one output.