Lesson 1.1 · 6 min read · about 45 min to master at a very slow pace
Machine Learning and Deep Learning
Machine learning builds a model and learns its parameters from data. Deep learning is the part of machine learning that uses many-layered neural networks. What that means, the learning loop, and a short history.
A model, and learning its parameters
Machine learning (ML) is model building. A model is a compact mathematical description of how inputs relate to outputs. Learning is the procedure that finds good values for the model's parameters from examples, instead of a person writing every rule by hand.
Here is the input, the prediction, and and are the parameters. If learning finds and , the model predicts for . The form of the model (a straight line) is chosen in advance; the data decide its parameters.
The learning loop
Building a model is a loop, not a single step:
Data → Model → Learning → Evaluation → back to the start until performance is acceptable.
Evaluation is part of the loop because a model that fits its training examples can still fail on new ones (Section 8).
Where deep learning fits
Deep learning (DL) is the part of ML that uses neural networks with many layers. Each layer transforms its input into a new representation, and later layers build on earlier ones, so the network learns useful features itself instead of relying on hand-made ones.
Key distinction
ML is the broad field. DL is ML with multi-layered neural networks. Not every ML model is a neural network (decision trees and linear regression aren't), and not every neural network is deep.
| Application area | Examples |
|---|---|
| Prediction | Weather, demand, prices |
| Pattern recognition | Recognising and segmenting objects in images |
| Sequential decision-making | Games, robotics, control |
| Generative AI | Generating text and images |
A short history
| When | Milestone | Why it matters |
|---|---|---|
| 1943 | McCulloch and Pitts model a neuron as a logic circuit | The first mathematical abstraction of a neuron |
| 1959 | ADALINE (Widrow and Hoff) | An early real application: cancelling echoes on phone lines |
| 1986 | Backpropagation popularised | Made training multi-layer networks practical |
| 2000s | GPUs | Enough computation for much larger networks |
| 2010 | ReLU popularised | Eased training of deep networks (Section 4) |
| 2012 | A deep CNN wins ImageNet by a wide margin | Convolutional networks take over computer vision (Section 10) |
Stuck? Common doubts
Questions real learners asked while studying this lesson. They stay closed so they don't spoil your own thinking: open only the ones you need.
First passIs a model the same thing as the learning algorithm?
No. The model is the mathematical mapping, such as or a neural network with its layers. The learning algorithm (for example gradient descent) is the procedure that adjusts the model's parameters to fit the data. The same model can be trained by different algorithms.
Going deeperIf deep learning is just machine learning, why does it get its own name?
Because of what the layers do. Classic ML often needs people to design the input features. A deep network learns a sequence of representations itself: early layers find simple patterns and later layers combine them. That ability to learn features is what made DL so effective on images, audio and text.
Cheatsheet
ML vs DL
Check your understanding
Score 75% or more to master this lesson and earn XP. Answer first, then check.