โ† Back to Library โ€ข AI & Machine Learning โ€ข Intermediate โ€ข 8 min read

What Is a Neural Network? Weights, Biases, and Activation Functions

An Artificial Neural Network (ANN) is a computational model inspired by the biological neural circuits of the human brain, composed of interconnected processing units (neurons) that pass signals through weighted connections.

๐Ÿ’ก Plain-English Analogy

Think of an artificial neuron like a committee member voting on a decision. Each member weighs different pieces of evidence (weights). If the combined evidence is strong enough to cross a certain threshold (bias and activation function), the member raises their hand (fires an output signal) to the next committee.

โš™๏ธ Architecture & Under the Hood

Mathematically, an artificial neuron computes the dot product of its input vector x and weight vector w, adds a scalar bias b, and applies an activation function: y = f(w ยท x + b). Backpropagation applies the calculus chain rule backwards from the loss function to compute partial derivatives with respect to each weight.

Anatomy of a Single Artificial Neuron

Every node calculates a weighted sum of its inputs before applying a non-linear threshold.

Input x1 โ”€โ”€(weight w1)โ”€โ”€โ”
Input x2 โ”€โ”€(weight w2)โ”€โ”€โ”ผโ”€โ”€โ–ถ [ Sum: ฮฃ (wi * xi) + b ] โ”€โ”€โ–ถ [ Activation f() ] โ”€โ”€โ–ถ Output y
Input x3 โ”€โ”€(weight w3)โ”€โ”€โ”˜              โ–ฒ
                                (Bias b)

Frequently Asked Questions

What is backpropagation?

Backpropagation is the algorithmic process of computing the gradient of the loss function with respect to every weight in the network via the chain rule of calculus, allowing gradient descent to adjust weights in the direction that minimizes errors.