Module_1
Module_1
Machine Learning
Dr. Tahseen A. Mulla (Ph. D - CSE)
Associate Professor
Department of Computer Science and Engineering
[Internet of Things and Cyber Security including Blockchain
Technology]
Unit 1
Machine Learning
Overview
• Machine Learning Definition
• Terminology
• Types of Learning
• Machine Learning problem categories
• Machine Learning architecture
• Process Life Cycle
• Performance Measures
• Tools and Frameworks
• Data Visualization
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 3
Machine Learning
Machine Learning – (Definition)
Machine learning is a field of computer
science that aims to teach computers how
to learn and act without being explicitly
programmed
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 5
Machine Learning – (Definition)
According to Tom Mitchell –
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 6
Lets see some
Machine Learning videos
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 7
Applications of Machine
Learning
Applications of Machine Learning
• Search Engines
1967
1952 1957
1950
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 11
History of Machine Learning Work on Machine
Learning shifts from
knowledge-driven
approach to a data-
Gerald Dejong introduces Terry Sejnowski driven approach.
the concept of Explanation invents NetTalk, Now machines used
Based Learning (EBL), in which learns to to learn from the
which a computer analyses pronounce words the results
Students at Stanford training data and creates a same way a baby
University invent the general rule it can follow by does
“Stanford Cart” discarding the unimportant
which can navigate data
obstacles in a room
on its own
1990
1981 1985
1979
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 12
History of Machine Learning
The Microsoft Google Brain is
“Kinect” can track 20 developed, and its
human features at a deep neural network
Geoffrey Hinton coins rate of 30 times per can learn to discover
the term “Deep second, allowing and categorize
Learning” to explain people to interact objects
new algorithms that let with the computer
computers “see” and via movements and
distinguish objects and gestures
text in images and
IBM’s Deep Blue videos
beats the world
champion at chess
2011
2006 2010
1997
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 13
Google’s Artificial
2016
2014 2015
2012
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 14
Types of Machine Learning
Types of Machine Learning
Machine
Learning
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 16
Supervised Learning
• Supervised learning is where
you have input variables (x)
and an output variable (Y) and
you use an algorithm to learn
the mapping function from the
input to the output
Y = f(X)
• The goal is to approximate the
mapping function so well that
when you have new input data
(x) that you can predict the
output variables (Y) for that
data
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 17
Unsupervised Learning
• Unsupervised learning is where you only have input data (X)
and no corresponding output variables
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 18
Reinforcement Learning
• It is about taking suitable action
to maximize reward in a
particular situation
• It is employed by various
software and machines to find
the best possible behavior or
path it should take in a specific
situation
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 19
Mind Map of Machine Learning
Machine Learning
Hypothesis Space
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 22
Hypothesis Space
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 23
Hypothesis Space
The test data will look like
this
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 24
Hypothesis Space
• Based on the data, algorithm and constraints this coordinate
plane can be divided in the following ways -
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 25
Hypothesis Space
• Hypothesis space (H) is the
composition of all legal best
possible ways to divide the
coordinate plane so that it
best maps input to proper
output
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 26
Machine Learning Architecture
Machine Learning Architecture
Gatheri
ng Data
Data
Deploy
Prepara
ment
tion
Data
Model
Wrangli
Testing
ng
Data
Model
Analyzin
Training
g
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 28
Gathering Data
• It is the first step of the Machine Learning life cycle. The goal
of this is to identify and obtain all data-related problems
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 29
Data Preparation
• After collecting the data, we need to prepare it for further
steps
• It is the process of cleaning the data, selecting the variable to use and
transforming the data in a proper format to make it more suitable for
analysis
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 33
Model Testing
• The machine learning model has been trained on a given
dataset, then we test the model
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 34
Deployment
• If the model is preparing an accurate result as per our
requirement, then the model is deployed in the real system
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 35
Performance Evaluation
Performance Evaluation
• Performance is very essential for a model in Machine
Learning
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 37
Performance Measures
• Confusion Matrix
• Accuracy
• Precision and Recall
• ROC & AUC
• Log/Logarithmic Loss
• F1 score
• Mean Absolute Error
• Mean Squared Error
• Coefficient of Determination
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 38
Tools and Framework
Tools
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 40
Framework
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 41
Data Visualization
Data Visualization
• Line Plot
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 43
Data Visualization
• Line Plot
• Bar Chart
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 44
Data Visualization
• Line Plot
• Bar Chart
• Pie and Donut Chart
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 45
Data Visualization
• Line Plot
• Bar Chart
• Pie and Donut Chart
• Histogram Plot
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 46
Data Visualization
• Line Plot
• Bar Chart
• Pie and Donut Chart
• Histogram Plot
• Scatter Plot
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 47
Data Visualization
• Line Plot
• Bar Chart
• Pie and Donut Chart
• Histogram Plot
• Scatter Plot
• Kernel Density Estimation
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 48
Data Visualization
• Line Plot
• Bar Chart
• Pie and Donut Chart
• Histogram Plot
• Scatter Plot
• Kernel Density Estimation
• Box and Whisker Plot
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 49
Data Visualization
• Line Plot
• Bar Chart
• Pie and Donut Chart
• Histogram Plot
• Scatter Plot
• Kernel Density Estimation
• Box and Whisker Plot
• Word Cloud and Network Diagrams
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 50
Data Visualization
• Line Plot
• Bar Chart
• Pie and Donut Chart
• Histogram Plot
• Scatter Plot
• Kernel Density Estimation
• Box and Whisker Plot
• Word Cloud and Network Diagrams
• Correlation Matrices
Wednesday,
Dr.January
Tahseen2A. Mulla Unit 1 - Machine Learning 51
Let’s summarize
Introduction to Probability and Statistics
Machine Learning definition
Machine Learning terminology
Types of Machine Learning
Machine Learning problem categories End of Module -
Machine Learning Architecture 1
Machine Learning Process
Machine Learning Lifecycle
Performance measures
Tools and framework
Data Visualization