AAI Lecture 9 SP 25
AAI Lecture 9 SP 25
Learning
1
AI vs Machine Learning vs Deep Learning
Summary
AI No Yes
ML Yes Yes
DL Yes No
Timeline
What is learning?
5
Why machine learning?
• The task: write a program that, given a 28x28 grayscale image of a digit,
outputs the number in the image
7
Learning Problem
• Learning = Improving with experience over some task
• Improve over task T,
• With respect to performance measure P,
• Based on experience E.
• Example
• T = Play checkers
• P = % of games won in a tournament
• E = opportunity to play against itself
8
Machine Learning
Learning = Improving with experience over some task
9
Types of learning
• Supervised learning: learn from (input, output) pairs
10
Supervised Learning
• Supervised Learning
• Classification
• Regression
ML (Reflex) Models
Classification
Features
• Use fewer features if possible
• Use features that differentiate classes well
• Character recognition example
• Good features: aspect ratio, presence of loops
• Bad features: number of black pixels, number of connected components
21
Less is More
The Curse of Dimensionality
• Learning from a high-dimensional feature space requires an enormous amount
of training to ensure that there are several samples with each combination of
values.
• With a fixed number of training instances, the predictive power reduces as
the dimensionality increases.
• Example (Clustering):
• Imagine you have 50 students and for each student you know his/her
marks out of 100. Divide these 50 students in good, average and worst
categories based upon their marks.
• Label in this case is one of the three strings (“good”, “average” or “bad”).
Here you have a training set (a list of marks of those 50 students) but you
don’t know the label of each of that student (whether that student
belongs to a “good” category or one of the other two. That is what you
have to find out!
Reinforcement Learning
• In reinforcement learning the agent learns from a series of
reinforcements—rewards or punishments.
• For example, the lack of a tip at the end of the journey gives the
taxi agent an indication that it did something wrong. The two
points for a win at the end of a chess game tells the agent it did
something right.