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.

Not startedJump to quiz

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 areaExamples
PredictionWeather, demand, prices
Pattern recognitionRecognising and segmenting objects in images
Sequential decision-makingGames, robotics, control
Generative AIGenerating text and images

A short history

WhenMilestoneWhy it matters
1943McCulloch and Pitts model a neuron as a logic circuitThe first mathematical abstraction of a neuron
1959ADALINE (Widrow and Hoff)An early real application: cancelling echoes on phone lines
1986Backpropagation popularisedMade training multi-layer networks practical
2000sGPUsEnough computation for much larger networks
2010ReLU popularisedEased training of deep networks (Section 4)
2012A deep CNN wins ImageNet by a wide marginConvolutional 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

ML: any model whose parameters are learned from data. DL: ML with multi-layered neural networks that learn their own representations.

See every cheatsheet by category →

Check your understanding

Score 75% or more to master this lesson and earn XP. Answer first, then check.

Q1conceptIn the model , which statement correctly separates the model from learning?
Q2calculateLearning produces . What does the model predict for ?
Q3conceptWhich statement about machine learning (ML) and deep learning (DL) is correct?
Q4applyWhy does the learning loop include an evaluation step before going round again?
Q5interpretWhich milestone made training multi-layer networks practical, by giving a systematic way to compute their gradients?