01 02 Intro
01 02 Intro
Model “car”
Modeling & Computation Predict
Future Data
Train
Past Data
(perhaps with labels)
1 2
Modeling Computation
Modeling
3 4
1
9/5/23
⋮ ⋮ ⋮ ⋮ ⋮
𝑥! age of house 𝑥! age of house 𝑤!
5 6
• 𝑓 𝐱 = 𝑤"𝑥" + 𝑤#𝑥# + ⋯ + 𝑤! 𝑥!
• 𝑤", 𝑤#, ⋯ , 𝑤! : weights Price = $0.5M
Prediction:
Features of a House
𝑓 𝐱 = 𝐱% 𝐰
𝐱 ∈ ℝ!
7 8
2
9/5/23
totally 𝑛 houses
9 10
11 12
3
9/5/23
13 14
SIFT Feature
LBP Feature
15 16
4
9/5/23
• CNNs are suitable for image data. Example: Skin cancer diagnosis
• CNNs convert images to effective
representations. (Feature extraction.) • Input: an image.
• Outputs:
• Is it skin cancer?
• Applications: • Benign or malignant?
• Image/video recognition.
• Face recognition. • The same accuracy as human experts.
• Image generation.
• …
Reference
[1] Esteva et al. Dermatologist-level classification of skin cancer with deep neural networks. Nature, 2017.
17 18
19 20
5
9/5/23
21 22
23 24
6
9/5/23
25 26
27 28
7
9/5/23
29 30
31 32
8
9/5/23
33 34
35 36
9
9/5/23
• Big data: too many training samples. • Big data: too many training samples.
• ImageNet: 14 million 256×256 images. • ImageNet: 14 million 256×256 images.
• Big model: too many model parameters. • Big model: too many model parameters.
• ResNet-50 (a very popular CNN architecture) has 25 million parameters. • ResNet-50 (a very popular CNN architecture) has 25 million parameters.
• Big data + big model bring computational challenges. • Big data + big model bring computational challenges.
• Training ResNet-50 on ImageNet using a single GPU takes around 14 • Training ResNet-50 on ImageNet using a single GPU takes around 14
days. days.
37 38
39 40
10
9/5/23
41 42
11