Gyrafold

How an artificial neuron works

Level:

One artificial neuron

Diagram of one artificial neuron: three inputs, their weights, a bias, the weighted sum, the activation function and the output
Plot of the chosen activation function from z = −4 to 4, with a dot at the current value
Activation function:

The real neuron and the artificial one

How the parts line up
BiologicalArtificialWhat happensOn the real neuron

From one neuron to a deep network

Hidden layers:
Diagram of a fully connected network

Illustration: the weights are made-up fixed numbers, not a trained network. Hidden layers use ReLU; the outputs are squashed with the sigmoid for display.

Why stack neurons?

    A deep network in 3D

    Hidden layers:
    Neurons per hidden layer:

    Illustration: the weights are fixed random numbers, the same on every visit (picked so that no layer goes completely dark), not a trained network. Hidden layers use ReLU; the output layer has no activation function. Cyan lines are positive weights, pink lines negative; brighter lines are larger weights. A brighter neuron has a larger output; a dark hidden neuron has output 0.

    What "deep" means

      How a network is made

        Learning rate:
        Step
        0
        Loss
        0.000

        Loss curve: loss against training step
        The four examples
        Input 1Input 2TargetPrediction
        The 2-4-1 network being trained. Line thickness follows the size of each weight.

        Solid cyan: positive weight. Dashed pink: negative weight. Thicker: larger.

        More about training

          Check yourself

          Words to know

          Sources

            Keep exploring