Master data processing, modeling, and deep learning algorithms.
Deep learning is a family of machine-learning models built from layers of artificial neurons. Where classical ML often needs carefully engineered features, deep neural networks learn useful representations directly from raw data — that is what makes them powerful, and also what makes them data-hungry. This lesson builds a neural network from first principles. You already know features, labels, gradients, and gradient descent from earlier nodes; here they are assembled into a single machine: inputs are combined with weights and biases, transformed by an activation, layered into a network, and trained by backpropagation. Everything is explained conceptually first. The TRY_IT is a simplified single-neuron learning simulation, not a production network.
Artificial neurons are loosely inspired by brain neurons, but the analogy is only a rough metaphor. An artificial neuron is really just a small mathematical function: a weighted sum followed by an activation. The "learning" is gradient descent on a loss function.
First the neuron computes a weighted sum of its inputs plus a bias, then an activation function decides how strongly to "fire".
| Layer | Role |
|---|---|
| Input layer | Receives the raw features |
| Hidden layers | Learn intermediate representations |
| Output layer | Produces the prediction |
A "deep" network simply has many hidden layers. Each layer transforms its input into a slightly more abstract representation.
| Parameters | Hyperparameters | |
|---|---|---|
| What | Weights and biases | Settings you choose |
| Learned? | Yes, during training | No — set before training |
| Examples | w, b values | Learning rate, layers, activation |
Forward propagation passes data through the network from input to output, producing a prediction. No learning happens in this step.
Backpropagation is the algorithm that computes gradients for every weight in a network. It works backward from the loss, using the chain rule of calculus to attribute how much each weight contributed to the error.
| Function | Range | Use |
|---|---|---|
| ReLU | [0, ∞) | Hidden layers (fast, simple) |
| Sigmoid | (0, 1) | Binary probability outputs |
| Tanh | (-1, 1) | Hidden layers (centered) |
| Softmax | (0, 1) sum to 1 | Multiclass probability outputs |
One neuron with two inputs.
(the neuron computes a weighted sum, then activates)
Softmax turns raw scores into probabilities.
(probabilities sum to 1; the first class is most likely)