Lecture 02
Lecture 02
Lecture 02
Introduction
5
Two Main Types of
Machine Learning
Dataset Goal Example
6
Supervised Learning
If the shape of the object is rounded and has a depression at the top, is red in color, then it will be labeled
as –Apple.
If the shape of the object is a long curving cylinder having Green-Yellow color, then it will be labeled as
–Banana
Now suppose after training the data, you have given a new separate fruit, say Banana from the basket, and asked to identify it.
Since the machine has already learned the things from previous data It will first classify the fruit with its shape and color and
would confirm the fruit name as BANANA and put it in the Banana category.
Thus the machine learns the things from training data(basket containing fruits) and then applies the knowledge to test
data(new fruit).
Suppose it is given an image having both dogs and cats which it has never seen.
Thus the machine has no idea about the features of dogs and cats so we can’t
categorize it as ‘dogs and cats ‘
Here you didn’t learn anything before, which means no training data or examples.
It allows the model to work on its own to discover patterns and information that was previously undetected.
It mainly deals with un-labelled data.
Taxonomy of Machine Learning
(A Simplistic View Based on Tasks)
Supervised Unsupervised
Learning Learning
Reinforcement
Learning
Taxonomy of Machine Learning
(A Simplistic View Based on Tasks)
Supervised Unsupervised
Learning Learning
Reinforcement
Learning
Classification
Regression (predicting a numeric value)
15th sample
Housing Price Prediction
Given: a dataset that contains samples
features/input label/output
𝑦
Dataset:
where
“Supervision” refers to
𝑥2
𝑥1
High-dimensional Features
for large
E.g.,
[]
--- living size
𝑥1
--- plot size
--- # floors
𝑥2
--- condition --- price
𝑥3
𝑥= ⋮
⋮
⋮
𝑥𝑑
Clustering “After unsupervised”
discovering structure in data
Regression vs Classification
regression: if is a continuous variable
e.g., price prediction
classification: the label is a discrete variable
e.g., the task of predicting the types of residence
house or
townhouse?
Supervised Learning in Computer
Vision
Object localization and detection
raw pixels of the image, the bounding boxes
[Arora-Ge-Liang-M.-Risteski, TACL’17,18]
Reinforcement Learning
Reinforcement Learning
The algorithm can collect data interactively