Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

A neural network is a mathematical function that turns input data into an output. During training, it adjusts internal parameters—weights and biases—so its predictions better match examples and a chosen objective. The repeated cycle of prediction, error measurement, and parameter updates is the core idea; the network is not a tiny brain making conscious decisions.

What a neural network does

A neural network maps inputs to outputs using computational units arranged in layers. A unit combines numbers from the previous layer, applies a mathematical operation, and passes a result along. The word “neuron” is an analogy for a computational unit, not evidence that the software reproduces biological brain cells. IBM describes the basic components as layers, weights, biases, and activation functions (IBM’s neural network explainer).

For example, a spam classifier could receive numbers representing features of a message and produce scores for “spam” and “not spam.” The input and output are numerical, even when the task concerns words. A final score may be probability-like, but its interpretation depends on the model and how it was trained.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How information moves through the layers

Weights and biases shape each calculation

Each connection has a weight that determines how strongly an incoming value affects a later calculation. A bias is an adjustable value that shifts that calculation. Together, these parameters help determine the network’s output. At the start of training, the parameters are not yet tuned to the task.

Activations make stacked layers more expressive

After combining values, a unit applies an activation function. Nonlinear activations matter because stacking only linear operations would still amount to a single linear mapping. Nonlinear steps allow a network to represent more varied relationships between inputs and outputs. It can be useful to imagine each layer reshaping a numerical signal, but that does not mean every layer discovers a clear, human-readable concept. Google for Developers’ neural networks module introduces hidden layers, activations, and training.

The calculation from input through the layers to an output is called a forward pass. During inference—the use of a trained model to produce an output—the learned parameters are held fixed rather than updated for each prediction.

How training changes a network

Training repeats a loop: make a prediction, compare it with the example’s target, calculate how the parameters contributed to the mismatch, and update those parameters. In the spam example, a training example includes a message representation and its label. A loss function measures the difference between the model’s output and the target according to the training objective.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Run a forward pass: send the input through the layers to obtain a prediction.
  2. Calculate the loss: compare the prediction with the target label using the chosen loss function.
  3. Compute gradients: use backpropagation to calculate how changes to each parameter would affect the loss.
  4. Update parameters: an optimizer uses those gradients to adjust weights and biases.
  5. Repeat: process more training examples and continue updating the parameters.

In compact form: input → layer-by-layer calculation → prediction → loss → gradients → parameter update → repeat. Google Cloud’s neural network explainer describes training and weight changes; IBM’s deep learning overview discusses backpropagation and optimization.

What backpropagation means

Backpropagation propagates derivative information backward through the network to calculate the loss’s sensitivity to its parameters. These derivatives are called gradients. The optimizer uses them to choose updates; backpropagation calculates the gradients but does not itself perform every update or guarantee that the network will reach a good solution. This is a mathematical sensitivity calculation, not an internal observer deciding why a prediction was wrong. A more detailed mathematical treatment appears in Michael Nielsen’s Neural Networks and Deep Learning.

What “learning” does—and does not—mean

When people say a network learns, they mean its parameter values change in response to data and an objective. That can improve performance on the training objective, but it does not establish that the model understands the task as a person would. Performance on examples used for training is also different from performance on new data; a separate evaluation set helps assess whether the learned behavior generalizes.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Neural networks, deep learning, and the brain analogy

Shallow and deep networks

“Neural network” names a family of models. “Deep learning” refers to using neural networks with multiple hidden layers; depth describes the network’s structure, not a guarantee of quality. More layers may allow an architecture to represent more complex relationships, but whether a deeper model works better depends on factors such as the architecture, data, computing resources, objective, and evaluation. IBM explains the relationship in its deep learning overview.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The brain analogy has limits

The terms “neuron” and “network” can suggest a literal biological imitation, but modern neural networks are mathematical systems built from numerical parameters and computations. Google researcher Maithra Raghu describes the distinction this way: “Connections between neurons are numerical values represented by matrices, and training the neural network uses gradient-based algorithms.” (Google’s Ask a Techspert explainer.) The analogy may help introduce connected units; it should not be taken to imply consciousness or human reasoning.

What neural networks are used for

Neural networks are used in tasks involving images, language, and speech, among others. The architecture and training data must suit the task, and performance needs to be evaluated; the model family alone does not make an application reliable. Google Cloud’s overview gives examples of these application areas.

Where to learn more

For a guided introduction to nodes, hidden layers, activation functions, training, and backpropagation, continue with Google for Developers’ neural networks module. For a more mathematical explanation of gradient descent and backpropagation, Nielsen’s Neural Networks and Deep Learning is available as a text mirror.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.