SlideShare a Scribd company logo
 Self Introduction
Name: Rizwan Shaukat (Razi)
Major: MS(Software Engineering)
ID: 2019272110006
Introduction to Machine Learning
Basics of Machine Learning
 About
 Subfield of Artificial Intelligence (AI)
 Name is derived from the concept that it deals with
“construction and study of systems that can learn from data”
 Can be seen as building blocks to make computers learn to behave more
intelligently
 It is a theoretical concept. There are various techniques with various
implementations.
 http://en.wikipedia.org/wiki/Machine_learning
 In other words:
 “A computer program is said to learn from experience (E) with some
class of tasks (T) and a performance measure (P) if its performance
at tasks in T as measured by P improves with E”
 Definitions
 “Learning is any process by which a system improves performance from experience.”
(By Herbert Simon)
 Definition by Tom Mitchell (1998):
 Machine Learning is the study of algorithms that
 improve their performance P
 at some task T
 with experience E.
 A well-defined learning task is given by <P, T, E>.
 Machine learning investigates the mechanisms by which knowledge is acquired through
experience
 Machine Learning is the field that concentrates on induction algorithms and on other
algorithms that can be said to ``learn.''
 When Do We Use Machine Learning
 ML is used when:
 Human expertise does not exist (navigating on Mars)
 Humans can’t explain their expertise (speech recognition)
 Models must be customized (personalized medicine)
 Models are based on huge amounts of data (genomics)
 Terminologies
 Features
 The number of features or distinct traits that can be used to describe
each item in a quantitative manner.
 Samples
 A sample is an item to process (e.g. classify). It can be a document, a
picture, a sound, a video, a row in database or CSV file, or whatever
you can describe with a fixed set of quantitative traits.
 Feature vector
 is an n-dimensional vector of numerical features that represent some
object.
 Terminologies Conti….
 Feature extraction
 Preparation of feature vector
 transforms the data in the high-dimensional space to a space of fewer
dimensions.
 Training/Evolution set
 Set of data to discover potentially predictive relationships.
 Lets go some what deeply…
 What do you mean by
Apple
 Learning (Training)
 Example of Apple:…
Features:
1. Color:
Radish/Red
2. Type : Fruit
3. Shape
etc…
Features:
1. Sky Blue
2. Logo
3. Shape
etc…
Features:
1. Yellow
2. Fruit
3. Shape
etc…
 Workflow
 Growth of Machine Learning
 Machine learning is preferred approach to
 Speech recognition, Natural language processing
 Computer vision
 Medical outcomes analysis
 Robot control
 Computational biology
 Growth of Machine Learning Conti…
 This trend is accelerating
 Improved machine learning algorithms
 Improved data capture, networking, faster computers
 Software too complex to write by hand
 New sensors / IO devices
 Demand for self-customization to user, environment
 It turns out to be difficult to extract knowledge from
human expertsfailure of expert systems in the 1980’s.
 Applications
 Association Analysis
 Supervised Learning
 Unsupervised Learning
 Semi-Supervised Learning
 Reinforcement Learning
 Learning Association
 Basket analysis:
P (Y | X ) probability that somebody who buys X also buys Y where X and Y are
products/services.
Example: P ( chips | beer ) = 0.7
Market-Basket transactions
TID Items
1 Bread, Milk
2 Bread, Diaper, Beer, Eggs
3 Milk, Diaper, Beer, Coke
4 Bread, Milk, Diaper, Beer
5 Bread, Milk, Diaper, Coke
 Supervised Learning
 the correct classes of the training data are known
Credit: http://us.hudson.com/legal/blog/postid/513/predictive-
analytics-artificial-intelligence-science-fiction-e-discovery-truth
 Supervised Learning: Uses
 Prediction of future cases: Use the rule to predict the output for future
inputs
 Knowledge extraction: The rule is easy to understand
 Compression: The rule is simpler than the data it explains
 Outlier detection: Exceptions that are not covered by the rule, e.g., fraud
Example: decision trees tools that create rules
 Unsupervised Learning Conti…
 the correct classes of the training data are not known
Credit: http://us.hudson.com/legal/blog/postid/513/predictive-
analytics-artificial-intelligence-science-fiction-e-discovery-truth
 Unsupervised Learning
 Learning “what normally happens”
 No output
 Clustering: Grouping similar instances
 Other applications: Summarization, Association Analysis
 Example applications
 Customer segmentation in CRM
 Image compression: Color quantization
 Bioinformatics: Learning motifs
 Semi-Supervised Learning
 A Mix of Supervised and Unsupervised learning
Credit: http://us.hudson.com/legal/blog/postid/513/predictive-
analytics-artificial-intelligence-science-fiction-e-discovery-truth
 Reinforcement Learning
 allows the machine or software agent to learn its behavior based on
feedback from the environment.
 This behavior can be learnt once and for all, or keep on adapting as time
goes by.
Credit: http://us.hudson.com/legal/blog/postid/513/predictive-
analytics-artificial-intelligence-science-fiction-e-discovery-truth
 Reinforcement Learning
 Topics:
 Policies: what actions should an agent take in a particular situation
 Utility estimation: how good is a state (used by policy)
 No supervised output but delayed reward
 Credit assignment problem (what was responsible for the outcome)
 Applications:
 Game playing
 Robot in a maze
 Multiple agents, partial observability, ...
 Machine Learning Techniques
 Techniques
 classification:
 predict class from observations
 clustering:
 group observations into “meaningful” groups
 regression (prediction):
 predict value from observations
 Classification
 Example: Credit scoring
 Differentiating between
low-risk and high-risk
customers from their
income and savings
Discriminant: IF income > θ1 AND savings > θ2
THEN low-risk ELSE high-risk
Model
 Classification : Applications
 Pattern recognition
 Face recognition: Pose, lighting, occlusion (glasses, beard), make-up, hair
style
 Character recognition: Different handwriting styles.
 Speech recognition: Temporal dependency.
 Use of a dictionary or the syntax of the language.
 Sensor fusion: Combine multiple modalities; eg, visual (lip image) and
acoustic for speech
 Medical diagnosis: From symptoms to illnesses
 Web Advertising: Predict if a user clicks on an ad on the Internet.
 Face Recognition
 In Face Recognition there is some raw data for the detection of any person’s
mood.
 System will be trained through this data and it will give out put in percentages.
Training examples of a person
Test images
 Clustering
 Clustering is the task of grouping a set of objects in such a way
that objects in the same group (called a cluster) are more similar
to each other
 objects are not predefined
 For e.g. these keywords
 “man’s shoe”
 “women’s shoe”
 “women’s t-shirt”
 “man’s t-shirt”
 can be cluster into 2 categories “shoe” and “t-shirt” or “man”
and “women”
 Popular ones are K-means clustering and Hierarchical clustering
 K-means Clustering
 partition n observations into k clusters in which each observation belongs to
the cluster with the nearest mean, serving as a prototype of the cluster.
 http://en.wikipedia.org/wiki/K-means_clustering
http://pypr.sourceforge.net/kmeans.html
 Hierarchical clustering
 method of cluster analysis which seeks to build a hierarchy of clusters.
 There can be two strategies
 Agglomerative:
 This is a "bottom up" approach: each observation starts in its own cluster,
and pairs of clusters are merged as one moves up the hierarchy.
 Time complexity is O(n^3)
 Divisive:
 This is a "top down" approach: all observations start in one cluster, and splits
are performed recursively as one moves down the hierarchy.
 Time complexity is O(2^n)
 http://en.wikipedia.org/wiki/Hierarchical_clustering
 Prediction : Regression
 is a measure of the relation between the mean
value of one variable (e.g. output) and
corresponding values of other variables (e.g.
time and cost).
 regression analysis is a statistical process
for estimating the relationships among
variables.
 Regression means to predict the output
value using training data.
 Popular one is Logistic regression (binary
regression)
 http://en.wikipedia.org/wiki/Logistic_regression
 Regression Application
 Navigating a car: Angle of the steering wheel (CMU NavLab)
 Kinematics of a robot arm
α1= g1(x,y)
α2= g2(x,y)
α1
α2
(x,y)
 Classification vs Regression
 Classification
 Classification means to group the
output into a class.
 classification to predict the type of
tumor i.e. harmful or not harmful
using training data
 if it is discrete/categorical
variable, then it is classification
problem
 Regression
 Regression means to predict the
output value using training
data.
 regression to predict the house
price from training data
 if it is a real
number/continuous, then it is
regression problem.
 Popular Frameworks/Tools
 Weka
 Carrot2
 Gate
 OpenNLP
 LingPipe
 Stanford NLP
 Mallet – Topic Modelling
 Popular Frameworks/Tools
 Gensim – Topic Modelling (Python)
 Apache Mahout
 MLib – Apache Spark
 scikit-learn - Python
 LIBSVM : Support Vector Machines
 and many more…
Any Question?
Machine learning presentation (razi)

More Related Content

PPTX
Machine Learning
PPTX
Machine learning
PPTX
Machine learning
DOC
Lecture #1: Introduction to machine learning (ML)
PDF
ML Basics
PPT
Machine Learning presentation.
PPT
Machine Learning
PPT
Basics of Machine Learning
Machine Learning
Machine learning
Machine learning
Lecture #1: Introduction to machine learning (ML)
ML Basics
Machine Learning presentation.
Machine Learning
Basics of Machine Learning

What's hot (19)

PDF
Lecture1 introduction to machine learning
PDF
Lecture 1: What is Machine Learning?
PPTX
Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...
PPTX
Machine Learning
PPTX
Machine Learning Unit 1 Semester 3 MSc IT Part 2 Mumbai University
PPTX
A Friendly Introduction to Machine Learning
PPTX
Introduction to Machine Learning
PDF
Applications in Machine Learning
PPT
Machine learning
PPTX
Introduction to machine learning and model building using linear regression
DOC
DagdelenSiriwardaneY..
PDF
An Introduction to Machine Learning
PPT
Machine learning
DOC
DATA MINING.doc
PDF
Seminar(Pattern Recognition)
PPT
Machine learning with Big Data power point presentation
PPTX
Meetup sthlm - introduction to Machine Learning with demo cases
PPTX
Machine learning_ Replicating Human Brain
PPTX
Applied Artificial Intelligence Unit 4 Semester 3 MSc IT Part 2 Mumbai Univer...
Lecture1 introduction to machine learning
Lecture 1: What is Machine Learning?
Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...
Machine Learning
Machine Learning Unit 1 Semester 3 MSc IT Part 2 Mumbai University
A Friendly Introduction to Machine Learning
Introduction to Machine Learning
Applications in Machine Learning
Machine learning
Introduction to machine learning and model building using linear regression
DagdelenSiriwardaneY..
An Introduction to Machine Learning
Machine learning
DATA MINING.doc
Seminar(Pattern Recognition)
Machine learning with Big Data power point presentation
Meetup sthlm - introduction to Machine Learning with demo cases
Machine learning_ Replicating Human Brain
Applied Artificial Intelligence Unit 4 Semester 3 MSc IT Part 2 Mumbai Univer...
Ad

Similar to Machine learning presentation (razi) (20)

PPTX
Introduction to Machine Learning
PPTX
Introduction to Machine learning ppt
PPTX
Basics of machine learning
PPTX
Introduction to Machine Learning
PDF
Introduction to Machine Learning
PPTX
Lecture 09(introduction to machine learning)
PPTX
INTRODUCTION TO MACHINE LEARNING.pptx
PDF
Fundamentals Of Machine Learning For Predictive Data Analytics Algorithms Wor...
PPT
Machine learning and deep learning algorithms
PPTX
Informs presentation new ppt
PPT
intro to ML by the way m toh phasee movie Punjabi
PPTX
INTRODUCTIONTOML2024 for graphic era.pptx
PPTX
Machine_Learning.pptx
PDF
machinecanthink-160226155704.pdf
PPTX
5. Machine Learning.pptx
PPTX
Machine Can Think
PPT
Machine Learning
PPT
ML-Topic1A.ppteeweqeqeqeqeqeqwewqqwwqeeqeqw
PPT
Machine Learning basics with simple .ppt
PPT
i2ml-chap1-v1-1.ppt
Introduction to Machine Learning
Introduction to Machine learning ppt
Basics of machine learning
Introduction to Machine Learning
Introduction to Machine Learning
Lecture 09(introduction to machine learning)
INTRODUCTION TO MACHINE LEARNING.pptx
Fundamentals Of Machine Learning For Predictive Data Analytics Algorithms Wor...
Machine learning and deep learning algorithms
Informs presentation new ppt
intro to ML by the way m toh phasee movie Punjabi
INTRODUCTIONTOML2024 for graphic era.pptx
Machine_Learning.pptx
machinecanthink-160226155704.pdf
5. Machine Learning.pptx
Machine Can Think
Machine Learning
ML-Topic1A.ppteeweqeqeqeqeqeqwewqqwwqeeqeqw
Machine Learning basics with simple .ppt
i2ml-chap1-v1-1.ppt
Ad

Recently uploaded (20)

PPTX
Cloud computing and distributed systems.
PDF
Machine learning based COVID-19 study performance prediction
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
Encapsulation theory and applications.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
MIND Revenue Release Quarter 2 2025 Press Release
Cloud computing and distributed systems.
Machine learning based COVID-19 study performance prediction
Diabetes mellitus diagnosis method based random forest with bat algorithm
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Mobile App Security Testing_ A Comprehensive Guide.pdf
Spectroscopy.pptx food analysis technology
Encapsulation theory and applications.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Building Integrated photovoltaic BIPV_UPV.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
MYSQL Presentation for SQL database connectivity
The Rise and Fall of 3GPP – Time for a Sabbatical?
Programs and apps: productivity, graphics, security and other tools
Reach Out and Touch Someone: Haptics and Empathic Computing
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Encapsulation_ Review paper, used for researhc scholars
“AI and Expert System Decision Support & Business Intelligence Systems”
MIND Revenue Release Quarter 2 2025 Press Release

Machine learning presentation (razi)

  • 1.  Self Introduction Name: Rizwan Shaukat (Razi) Major: MS(Software Engineering) ID: 2019272110006
  • 2. Introduction to Machine Learning Basics of Machine Learning
  • 3.  About  Subfield of Artificial Intelligence (AI)  Name is derived from the concept that it deals with “construction and study of systems that can learn from data”  Can be seen as building blocks to make computers learn to behave more intelligently  It is a theoretical concept. There are various techniques with various implementations.  http://en.wikipedia.org/wiki/Machine_learning  In other words:  “A computer program is said to learn from experience (E) with some class of tasks (T) and a performance measure (P) if its performance at tasks in T as measured by P improves with E”
  • 4.  Definitions  “Learning is any process by which a system improves performance from experience.” (By Herbert Simon)  Definition by Tom Mitchell (1998):  Machine Learning is the study of algorithms that  improve their performance P  at some task T  with experience E.  A well-defined learning task is given by <P, T, E>.  Machine learning investigates the mechanisms by which knowledge is acquired through experience  Machine Learning is the field that concentrates on induction algorithms and on other algorithms that can be said to ``learn.''
  • 5.  When Do We Use Machine Learning  ML is used when:  Human expertise does not exist (navigating on Mars)  Humans can’t explain their expertise (speech recognition)  Models must be customized (personalized medicine)  Models are based on huge amounts of data (genomics)
  • 6.  Terminologies  Features  The number of features or distinct traits that can be used to describe each item in a quantitative manner.  Samples  A sample is an item to process (e.g. classify). It can be a document, a picture, a sound, a video, a row in database or CSV file, or whatever you can describe with a fixed set of quantitative traits.  Feature vector  is an n-dimensional vector of numerical features that represent some object.
  • 7.  Terminologies Conti….  Feature extraction  Preparation of feature vector  transforms the data in the high-dimensional space to a space of fewer dimensions.  Training/Evolution set  Set of data to discover potentially predictive relationships.
  • 8.  Lets go some what deeply…  What do you mean by Apple
  • 9.  Learning (Training)  Example of Apple:… Features: 1. Color: Radish/Red 2. Type : Fruit 3. Shape etc… Features: 1. Sky Blue 2. Logo 3. Shape etc… Features: 1. Yellow 2. Fruit 3. Shape etc…
  • 11.  Growth of Machine Learning  Machine learning is preferred approach to  Speech recognition, Natural language processing  Computer vision  Medical outcomes analysis  Robot control  Computational biology
  • 12.  Growth of Machine Learning Conti…  This trend is accelerating  Improved machine learning algorithms  Improved data capture, networking, faster computers  Software too complex to write by hand  New sensors / IO devices  Demand for self-customization to user, environment  It turns out to be difficult to extract knowledge from human expertsfailure of expert systems in the 1980’s.
  • 13.  Applications  Association Analysis  Supervised Learning  Unsupervised Learning  Semi-Supervised Learning  Reinforcement Learning
  • 14.  Learning Association  Basket analysis: P (Y | X ) probability that somebody who buys X also buys Y where X and Y are products/services. Example: P ( chips | beer ) = 0.7 Market-Basket transactions TID Items 1 Bread, Milk 2 Bread, Diaper, Beer, Eggs 3 Milk, Diaper, Beer, Coke 4 Bread, Milk, Diaper, Beer 5 Bread, Milk, Diaper, Coke
  • 15.  Supervised Learning  the correct classes of the training data are known Credit: http://us.hudson.com/legal/blog/postid/513/predictive- analytics-artificial-intelligence-science-fiction-e-discovery-truth
  • 16.  Supervised Learning: Uses  Prediction of future cases: Use the rule to predict the output for future inputs  Knowledge extraction: The rule is easy to understand  Compression: The rule is simpler than the data it explains  Outlier detection: Exceptions that are not covered by the rule, e.g., fraud Example: decision trees tools that create rules
  • 17.  Unsupervised Learning Conti…  the correct classes of the training data are not known Credit: http://us.hudson.com/legal/blog/postid/513/predictive- analytics-artificial-intelligence-science-fiction-e-discovery-truth
  • 18.  Unsupervised Learning  Learning “what normally happens”  No output  Clustering: Grouping similar instances  Other applications: Summarization, Association Analysis  Example applications  Customer segmentation in CRM  Image compression: Color quantization  Bioinformatics: Learning motifs
  • 19.  Semi-Supervised Learning  A Mix of Supervised and Unsupervised learning Credit: http://us.hudson.com/legal/blog/postid/513/predictive- analytics-artificial-intelligence-science-fiction-e-discovery-truth
  • 20.  Reinforcement Learning  allows the machine or software agent to learn its behavior based on feedback from the environment.  This behavior can be learnt once and for all, or keep on adapting as time goes by. Credit: http://us.hudson.com/legal/blog/postid/513/predictive- analytics-artificial-intelligence-science-fiction-e-discovery-truth
  • 21.  Reinforcement Learning  Topics:  Policies: what actions should an agent take in a particular situation  Utility estimation: how good is a state (used by policy)  No supervised output but delayed reward  Credit assignment problem (what was responsible for the outcome)  Applications:  Game playing  Robot in a maze  Multiple agents, partial observability, ...
  • 22.  Machine Learning Techniques
  • 23.  Techniques  classification:  predict class from observations  clustering:  group observations into “meaningful” groups  regression (prediction):  predict value from observations
  • 24.  Classification  Example: Credit scoring  Differentiating between low-risk and high-risk customers from their income and savings Discriminant: IF income > θ1 AND savings > θ2 THEN low-risk ELSE high-risk Model
  • 25.  Classification : Applications  Pattern recognition  Face recognition: Pose, lighting, occlusion (glasses, beard), make-up, hair style  Character recognition: Different handwriting styles.  Speech recognition: Temporal dependency.  Use of a dictionary or the syntax of the language.  Sensor fusion: Combine multiple modalities; eg, visual (lip image) and acoustic for speech  Medical diagnosis: From symptoms to illnesses  Web Advertising: Predict if a user clicks on an ad on the Internet.
  • 26.  Face Recognition  In Face Recognition there is some raw data for the detection of any person’s mood.  System will be trained through this data and it will give out put in percentages. Training examples of a person Test images
  • 27.  Clustering  Clustering is the task of grouping a set of objects in such a way that objects in the same group (called a cluster) are more similar to each other  objects are not predefined  For e.g. these keywords  “man’s shoe”  “women’s shoe”  “women’s t-shirt”  “man’s t-shirt”  can be cluster into 2 categories “shoe” and “t-shirt” or “man” and “women”  Popular ones are K-means clustering and Hierarchical clustering
  • 28.  K-means Clustering  partition n observations into k clusters in which each observation belongs to the cluster with the nearest mean, serving as a prototype of the cluster.  http://en.wikipedia.org/wiki/K-means_clustering http://pypr.sourceforge.net/kmeans.html
  • 29.  Hierarchical clustering  method of cluster analysis which seeks to build a hierarchy of clusters.  There can be two strategies  Agglomerative:  This is a "bottom up" approach: each observation starts in its own cluster, and pairs of clusters are merged as one moves up the hierarchy.  Time complexity is O(n^3)  Divisive:  This is a "top down" approach: all observations start in one cluster, and splits are performed recursively as one moves down the hierarchy.  Time complexity is O(2^n)  http://en.wikipedia.org/wiki/Hierarchical_clustering
  • 30.  Prediction : Regression  is a measure of the relation between the mean value of one variable (e.g. output) and corresponding values of other variables (e.g. time and cost).  regression analysis is a statistical process for estimating the relationships among variables.  Regression means to predict the output value using training data.  Popular one is Logistic regression (binary regression)  http://en.wikipedia.org/wiki/Logistic_regression
  • 31.  Regression Application  Navigating a car: Angle of the steering wheel (CMU NavLab)  Kinematics of a robot arm α1= g1(x,y) α2= g2(x,y) α1 α2 (x,y)
  • 32.  Classification vs Regression  Classification  Classification means to group the output into a class.  classification to predict the type of tumor i.e. harmful or not harmful using training data  if it is discrete/categorical variable, then it is classification problem  Regression  Regression means to predict the output value using training data.  regression to predict the house price from training data  if it is a real number/continuous, then it is regression problem.
  • 33.  Popular Frameworks/Tools  Weka  Carrot2  Gate  OpenNLP  LingPipe  Stanford NLP  Mallet – Topic Modelling
  • 34.  Popular Frameworks/Tools  Gensim – Topic Modelling (Python)  Apache Mahout  MLib – Apache Spark  scikit-learn - Python  LIBSVM : Support Vector Machines  and many more…