Professional Documents
Culture Documents
Machine Learning
zamriosman@ump.edu.my
AI EVOLUTION
1968
1950 IBM deep blue
computer
Amazon’s Echo is
Apple introduce Siri 1997
released
2014
2011
Microsoft Tay is
released Cambridge
Analytica scandal
2016 becomes public
2018
zamriosman@ump.edu.my
COGNITIVE SOFTWARE
Ability for a machine or program to identify
A method of data analysis that words spoken aloud and convert to
automates analytical model readable text
building
Machine Learning Speech Recognition
zamriosman@ump.edu.my
HEIRARCHY OF AI, ML AND DL
AI
Machine Learning is a
Deep Learning is a class of Machine Learning fundamental parts of Artificial
machine learning algorithms Intelligence that provides
that imitate the working of computers with the ability to
the human brain in processing learn without explicitly
data and creating patterns. It Deep Learning programmed.
is affective in performing
complicated analysis of
unstructured data as speech
and image recognition.
zamriosman@ump.edu.my
MACHINE LEARNING
Machine learning is the science (and art) of programming computers so they can learn from data.
[Machine Learning is the] field of study that gives computers the ability to learn without
being explicitly programmed.
-- Arthur Samuel, 1959
A computer program is said to learn from experience E with respect to some task T and
some performance measure P, if its performance on T, as measured by P, improves with
experience E.
-- Tom Mitchell, 1997
zamriosman@ump.edu.my
MACHINE LEARNING
Why use Machine Learning?
Consider how you would write a spam filter using
traditional programming techniques (Figure)
zamriosman@ump.edu.my
MACHINE LEARNING
The Machine Learning Approach
ML techniques automatically learns which words and
phrases are good predictors of spam by detecting
unusually frequent patterns of words in the spam
example.
.
Shorter, easy to maintain,
more accurate
zamriosman@ump.edu.my
MACHINE LEARNING
The Machine Learning Approach
zamriosman@ump.edu.my
MACHINE LEARNING
To summarize, ML is great for:
01
Problem for which existing solutions require a lot of fine-tuning or long lists of rules: one ML
algorithm can often simplify code and perform better than the traditional approach.
02
Complex problems for which using traditional approach yields no good solution: the best ML
techniques can perhaps find a solution.
03
Fluctuating environments: a ML system can adapt to new data.
04
Getting insights about complex problems and large amount of data.
zamriosman@ump.edu.my
ML APPLICATIONS
We are using machine learning in our daily
life even without knowing it such as Google
Maps, Google assistant, Alexa, etc. Below are
some most trending real-world applications
of Machine Learning:
zamriosman@ump.edu.my
ML APPLICATIONS
zamriosman@ump.edu.my
zamriosman@ump.edu.my
ML PLAYGROUND
Activities:
Visit https://teachablemachine.withgoogle.com/
zamriosman@ump.edu.my
TYPES OF ML
The Machine Learning Approach
There are so many different types of ML system that it is useful to classify them in bread
categories, based on the following criteria:
1. Whether or not they are trained with human supervision (supervised, unsupervised, semi-
supervised, and Reinforcement learning)
2. Whether or not they can learn incrementally on the fly (online versus batch learning)
3. Whether they work by simply comparing new data points to known data points, or instead by
detecting patterns in the training data and building a predictive model, much like scientist do
(instance-based versus model-based learning)
zamriosman@ump.edu.my
TYPES OF ML (SUPERVISED)
There are four major ML categories: Supervised,
Unsupervised, Semi-supervised, and
Reinforcement Learning
Supervised Learning
In supervised learning, the training set you feed
to the algorithm includes the desired solutions,
called labels.
zamriosman@ump.edu.my
TYPES OF ML (SUPERVISED)
A typical supervised learning task is classification. The spam filter
is a good example: its trained with many example emails along
with their class (spam or ham), and it must learn how to classify
new emails.
zamriosman@ump.edu.my
TYPES OF ML (SUPERVISED)
zamriosman@ump.edu.my
TYPES OF ML (SUPERVISED)
Some of Supervised Learning algorithms:
1. k-Nearest Neighbors
2. Linear Regression
3. Multilinear Regression
4. Logistic Regression Search over the internet, what
5. Support Vector Machines (SVMs) application used these supervised
learning
6. Decision Tree and Random Forest
7. XGBoost
8. Neural Network
zamriosman@ump.edu.my
TYPES OF ML (UNSUPERVISED)
Unsupervised Learning
In unsupervised learning, the training data is
unlabelled. The system tries to learn without a
teacher.
zamriosman@ump.edu.my
TYPES OF ML (UNSUPERVISED)
Some of unsupervised learning algorithms:
Clustering Association rule learning
1. K-Means 1. Apriori
2. DBSCAN 2. Eclat
3. Hierarchical Cluster Analysis (HSA)
zamriosman@ump.edu.my
TYPES OF ML (UNSUPERVISED)
Visualization:
zamriosman@ump.edu.my
TYPES OF ML (UNSUPERVISED)
Dimensionality Reduction:
TIP
The goal is to simplify the data without losing to much It is often a good idea to try to reduce the dimension of your
training data using a dimensionality reduction algorithm
information. One way to do is to merge several before you feed in to another ML algorithm. It will run much
correlated features into one. faster, requires less disk and memory space, and
sometimes perform better.
+ = The loss
zamriosman@ump.edu.my
TYPES OF ML (UNSUPERVISED)
Anomaly Detection:
zamriosman@ump.edu.my
TYPE OF ML (SEMI-SUPERVISED)
Semi-supervised Learning
zamriosman@ump.edu.my
TYPE OF ML (REINFORCEMENT)
Reinforcement Algorithm
Where it is applied?
Robots implement RL algorithms to learn how to
walk.
DeepMind’s AlphaGo – beat the world campion Ke
Jie at the game of Go. Its learn millions of
possibilities on how to win the game (reward and
penalty).
zamriosman@ump.edu.my
ML IN DATA SCIENCE LANDSCAPE
zamriosman@ump.edu.my
DATA SCIENCE PROJECT STRUCTURE
zamriosman@ump.edu.my
zamriosman@ump.edu.my
DATA SCIENCE PROJECT STRUCTURE
zamriosman@ump.edu.my