✦ ✦
Future-Ready · AI & Machine Learning

How a neural network makes a prediction

A neural network combines calculations in artificial "neurons" arranged in LAYERS. Connections have numerical WEIGHTS that can change during training.
🕸️Layers and weighted connections
signals flow this way → 🐱 🐶 w = 0.8 INPUT layer HIDDEN layer OUTPUT layer
Three kinds of layers
Input layer: numbers from the new example go in on the left.
Hidden layer(s): units combine weighted inputs and pass the results along.
Output layer: scores help determine the predicted label, such as cat or dog.
Every connecting line carries a weight that affects the contribution of the signal it carries.
🔬One unit in a simple network
INPUTS x₁ x₂ x₃ × w₁ × w₂ × w₃ neuron ∑ add them up big enough? OUTPUT ⚡ signal passes a signal on
Each input is multiplied by its weight, the neuron adds them all up. In the threshold example, a large enough total triggers a signal to the next layer. Other networks use different rules.
🎛️How training changes weights
Before training weights set at random ❌ wrong guess After training adjusted weights ✅ correct this time
🎛️ Weights are like volume dials
Picture each weight as a tiny dial controlling an input’s contribution. Initial weights are often chosen randomly. During training the training program adjusts weights to reduce errors on its examples. The network can still make mistakes on new inputs. Testing uses examples set aside from training.
🔑Key Terms
🕸️Neural Network A model that transforms inputs through connected layers of numerical calculations to produce outputs.
🔵Neuron (Node) A unit that combines weighted inputs and applies a rule to produce an output.
📚Layer A group of units at the same processing step. This diagram has an input layer, one hidden layer and an output layer.
🎛️Weight A number on each connection that says how strongly one neuron affects the next. Training adjusts the weights.
⬅️Input Layer The first layer, where the numbers from a new example enter the network.
➡️Output Layer The last layer, where the network's final answer or prediction comes out.
⭐ Follow a number through the diagram. Which weight multiplies it? Which other values are added before the result reaches the output?
✏️ ClickClass · How a neural network makes a prediction
ClickClass offers hundreds of free printables at clickclassedu.com/printables.