Neural Networks
Computing systems inspired by layered neuron-like structures that learn patterns from data.
Calculate the output of one artificial unit
To see the arithmetic inside a network, imagine two invented feature values from a print scan. This small example uses fixed weights so you can check every step.
- Inputs and weights
- The values are 2 and 1. Give the first a weight of 0.5 and the second a weight of −0.25.
- Weighted sum plus bias
- Multiply each input by its weight and add a bias of −0.50. The result is 1.00 − 0.25 − 0.50 = 0.25.
- Activation
- A rectified linear unit returns the greater of zero and its input. It passes 0.25 to the next layer. With inputs 0 and 1 it would pass zero.
Where learning enters the calculation
A network passes outputs between many units. During training, an optimizer changes weights and biases in response to a loss function. The values above show one forward calculation after the parameters have been chosen. The output of this unit is a feature value, with no automatic probability interpretation.
How Neural Networks Learn
A neural network starts with parameters that are adjusted during training. The network produces an output, compares it with the target, and then updates internal weights so future outputs improve. Over many iterations, the network learns which patterns in the input are useful for the task.
One reason neural networks are so effective is that they can learn their own representations. Instead of depending entirely on hand-crafted features, the network can discover patterns that matter for images, language, sound, or structured data. That makes them much more flexible than many older approaches.
Follow the idea
Deep learning composes several layers of these learned transformations.
Machine learning explains why performance is measured on examples held outside training.
Related concepts
Examples in the AI guides
Source · Dive into Deep Learning on hidden layers and activation functions
Return to Neural Networks in the A–Z glossary