Neural networks are made of artificial neurons, which mimic how the brain processes information.
Each neuron takes inputs, multiplies them by weights, and passes them forward.
🔩 How a Neuron Works
A simple neuron performs this operation:
output = activation(w₁x₁ + w₂x₂ + ... + b)
Where:
x
= inputsw
= weightsb
= biasactivation()
= function that adds non-linearity
🔁 Weights and Bias
- Weights determine how much influence each input has.
- Bias allows shifting the output up or down.
Training adjusts these values to reduce loss.
🧱 Layers of Neurons
Neural networks are organized in layers:
- Input Layer — receives the raw data
- Hidden Layers — learn patterns and features
- Output Layer — produces final predictions
📊 Example Network
- Each circle = neuron
- Each line = weight
🧠 Why Layers Matter
- More layers → More expressive power
- Too many → Risk of overfitting
- Finding the balance is key
🧠 Summary
| Concept | Role | |----------|--------------------------------------| | Neuron | Basic computing unit | | Weight | Multiplier that adjusts input signal | | Bias | Shifts the output | | Layer | Group of neurons |
✅ Self-Check
- What does a single neuron compute?
- What are weights and why are they important?
- What is the role of hidden layers?