A06 Intro To ML
A06 Intro To ML
Introduction to
Introduction to the
Machine
Internet ofLearning
Things
Mehul Motani
Mehul Motani
National University of Singapore
[email protected]
1
Mehul Motani, NUS/CDE/ECE Introduction to Machine Learning
Supervised Learning
2
Mehul Motani, NUS/CDE/ECE Introduction to Machine Learning
Class 0
Supervised ML can
learn this decision
boundary
Class 1
X1 and x2 are
called features
© Mehul Motani Intro to ML 6
3
Mehul Motani, NUS/CDE/ECE Introduction to Machine Learning
4
Mehul Motani, NUS/CDE/ECE Introduction to Machine Learning
5
Mehul Motani, NUS/CDE/ECE Introduction to Machine Learning
Unsupervised learning
• In unsupervised learning, we are dealing with
unlabeled data or data of unknown structure.
• Using unsupervised learning techniques, we are able
to explore the structure of our data to extract
meaningful information without the knowledge of
an outcome variable (or label).
• Compare that with supervised learning, in which we
are dealing with labeled data.
• Examples of unsupervised learning are clustering
and dimensionality reduction.
6
Mehul Motani, NUS/CDE/ECE Introduction to Machine Learning
3D 2D
Reinforcement learning
• In reinforcement learning (RL), the goal is to develop
a system (agent) that improves its performance
based on interactions with the environment.
• RL is related to supervised learning. However, in RL
this feedback is not the correct ground truth label or
value, but a measure of how well the action was
measured by a reward function.
• RL learns a series of actions that maximizes the
reward.
7
Mehul Motani, NUS/CDE/ECE Introduction to Machine Learning
Reinforcement learning
8
Mehul Motani, NUS/CDE/ECE Introduction to Machine Learning
Typical machine
Data cleaning and wrangling
Feature extraction & selection
Dimensionality reduction
Feature scaling
Data interpolation & imputation learning system
9
Mehul Motani, NUS/CDE/ECE Introduction to Machine Learning
Class 1
Class 2
10
Mehul Motani, NUS/CDE/ECE Introduction to Machine Learning
Classification
problem:
Predict the Iris
variety from its
features.
11
Mehul Motani, NUS/CDE/ECE Introduction to Machine Learning
Nonlinear
classifier
12
Mehul Motani, NUS/CDE/ECE Introduction to Machine Learning
13
Mehul Motani, NUS/CDE/ECE Introduction to Machine Learning
Test Data
Source: learnopencv.com
© Mehul Motani Intro to ML 27
14
Mehul Motani, NUS/CDE/ECE Introduction to Machine Learning
15
Mehul Motani, NUS/CDE/ECE Introduction to Machine Learning
16
Mehul Motani, NUS/CDE/ECE Introduction to Machine Learning
https://en.wikipedia.org/wiki/Confusion_matrix
© Mehul Motani Intro to ML 37
Performance Metrics
17
19