A neural network is a machine learning model made of connected nodes that multiply inputs by weights, add a bias, and pass the result through a simple function.
A neural network is built from simple units called neurons, or nodes. Each neuron receives input numbers, multiplies each one by a weight, adds the products and a bias value, and then applies an activation function to produce an output. Neurons are arranged in layers: an input layer, one or more hidden layers, and an output layer.
The weights and biases are the adjustable settings of the model. Training changes them to reduce the difference between predicted and correct outputs. The method that works out how each weight should change is called backpropagation, and it is usually combined with gradient descent, which takes small steps toward lower error.
A neural network is not a copy of the human brain. The name is a loose inspiration. The underlying mathematics is ordinary multiplication, addition and function evaluation.
Inside your account
What an account adds to the pages you are reading.
Lessons
Topic explanations with worked examples, split into units.
A neuron computes a weighted sum of its inputs, adds the bias, and then applies an activation function.
A weight controls how strongly an input affects the output; a negative weight reverses that effect.
Hidden layers let the network combine simple features into more complex patterns.
ReLU returns the input if it is positive and returns 0 if it is zero or negative.
Training repeatedly reduces the error between predicted and correct outputs.
Example
Question: a neuron has inputs x1 = 2 and x2 = 3, weights w1 = 0.5 and w2 = -1, and bias b = 1. What is the weighted sum before the activation? Compute 2 times 0.5 = 1, then 3 times -1 = -3, then add the bias: 1 + (-3) + 1 = -1.
Question: if the activation is ReLU, what is the output for the sum -1? ReLU gives 0 for negative input, so the neuron output is 0 for this input.
Common mistakes
Thinking a neural network understands meaning as a person does. It only computes numbers from its inputs.
Forgetting that the bias shifts the result, so the neuron can respond to a different threshold.
Assuming a bigger network is always better. Larger networks need more data and can overfit.
Summary
A neural network is a layered model of neurons. Each neuron combines inputs with weights and a bias, then applies an activation function. Training adjusts the weights to reduce error on examples, and hidden layers let the model learn more complex patterns.
Frequently asked questions
What is a weight in a neural network?
A weight is a number that sets how strongly one input affects a neuron. Training changes the weights so that the network's outputs move closer to the correct answers.
Why do neural networks need activation functions?
Without a non-linear activation function, stacked layers of multiplication and addition would collapse into a single linear calculation. Non-linear activation functions let the network represent more complex patterns.
Do neural networks always need huge amounts of data?
Not always, but larger networks usually need more data to avoid overfitting. Small datasets often work better with simpler models.