SlideShare une entreprise Scribd logo
1  sur  34
Télécharger pour lire hors ligne
Machine Learning
Supervised Learning and Support Vector Machine
                         Raj Kamal
                   r.kamal@iitg.ernet.in


                 Department of Mathematics
           Indian Institute of Technology,Guwahati
                   Guwahati-781039,India




                                                     Machine Learning – p. 1
Seminar
          1-1
Outline of the talk
    Introduction




                      Machine Learning – p. 2
Outline of the talk
    Introduction
    Motivation




                      Machine Learning – p. 2
Outline of the talk
    Introduction
    Motivation
    Support Vector Machines




                              Machine Learning – p. 2
Outline of the talk
    Introduction
    Motivation
    Support Vector Machines
    Softwares




                              Machine Learning – p. 2
Outline of the talk
    Introduction
    Motivation
    Support Vector Machines
    Softwares
    Applications




                              Machine Learning – p. 2
Outline of the talk
    Introduction
    Motivation
    Support Vector Machines
    Softwares
    Applications
    Conclusion




                              Machine Learning – p. 2
Outline of the talk
    Introduction
    Motivation
    Support Vector Machines
    Softwares
    Applications
    Conclusion




                              Machine Learning – p. 2
Machine Learning
  Machine learning, a branch of artificial intelligence, is a scientific discipline concerned with the
  design and development of algorithms that allow computers to evolve behaviors based on
  empirical data, such as from sensor data or databases.
  Here computer learns the algorithms from the experience.
  Idea: Synthesize computer programs by learning from representative examples of input (and
  output) data. Rationale Learning from Examples: A. For many problems, there is no known
  method for computing the desired output from a set of inputs. B. For other problems, computation
  according to the known correct method may be too expensive.
  How can we build computer systems that automatically improve with experience, and what are the
  fundamental laws that govern all learning processes?
  Machine Learning




                                                                                           Machine Learning – p. 3
Machine Learning
  Machine learning, a branch of artificial intelligence, is a scientific discipline concerned with the
  design and development of algorithms that allow computers to evolve behaviors based on
  empirical data, such as from sensor data or databases.
  Here computer learns the algorithms from the experience.
  Idea: Synthesize computer programs by learning from representative examples of input (and
  output) data. Rationale Learning from Examples: A. For many problems, there is no known
  method for computing the desired output from a set of inputs. B. For other problems, computation
  according to the known correct method may be too expensive.
  How can we build computer systems that automatically improve with experience, and what are the
  fundamental laws that govern all learning processes?
  Machine Learning




                                                                                           Machine Learning – p. 3
Machine Learning
  Machine learning, a branch of artificial intelligence, is a scientific discipline concerned with the
  design and development of algorithms that allow computers to evolve behaviors based on
  empirical data, such as from sensor data or databases.
  Here computer learns the algorithms from the experience.
  Idea: Synthesize computer programs by learning from representative examples of input (and
  output) data. Rationale Learning from Examples: A. For many problems, there is no known
  method for computing the desired output from a set of inputs. B. For other problems, computation
  according to the known correct method may be too expensive.
  How can we build computer systems that automatically improve with experience, and what are the
  fundamental laws that govern all learning processes?
  Machine Learning




                                                                                           Machine Learning – p. 3
continue
   What is the Learning Problem?
   Learning = Improving with experience at some task
   1. Improve over task T ,
   2. with respect to performance measure P
   3. based on experience E




                                               Machine Learning – p. 4
continue
   What is the Learning Problem?
   Learning = Improving with experience at some task
   1. Improve over task T ,
   2. with respect to performance measure P
   3. based on experience E




                                               Machine Learning – p. 4
Variants of Machine Learning
 1. Supervised Learning : Given a set of label training-data xi, yi , with xi be a set of samples and yi a
    set of labels.
 2. Unsupervised Learning : Given only a set of data xi . Learning without output values (data
    exploration, e.g. clustering).
 3. Query Learning : Learning where the learner can query the environment about the output
    associated with a particular input.
 4. Reinforcement Learning : Learning where the learner has a range of actions which it can take to
    attempt to move towards states where it can expect high rewards. Cocktail Party Problem ,Sound
    overlapping and verification
Problems are solved using methods of statistics: Regression,EM algorithm,MLE algorithm




                                                                                               Machine Learning – p. 5
Variants of Machine Learning
 1. Supervised Learning : Given a set of label training-data xi, yi , with xi be a set of samples and yi a
    set of labels.
 2. Unsupervised Learning : Given only a set of data xi . Learning without output values (data
    exploration, e.g. clustering).
 3. Query Learning : Learning where the learner can query the environment about the output
    associated with a particular input.
 4. Reinforcement Learning : Learning where the learner has a range of actions which it can take to
    attempt to move towards states where it can expect high rewards. Cocktail Party Problem ,Sound
    overlapping and verification
Problems are solved using methods of statistics: Regression,EM algorithm,MLE algorithm




                                                                                               Machine Learning – p. 5
Variants of Machine Learning
 1. Supervised Learning : Given a set of label training-data xi, yi , with xi be a set of samples and yi a
    set of labels.
 2. Unsupervised Learning : Given only a set of data xi . Learning without output values (data
    exploration, e.g. clustering).
 3. Query Learning : Learning where the learner can query the environment about the output
    associated with a particular input.
 4. Reinforcement Learning : Learning where the learner has a range of actions which it can take to
    attempt to move towards states where it can expect high rewards. Cocktail Party Problem ,Sound
    overlapping and verification
Problems are solved using methods of statistics: Regression,EM algorithm,MLE algorithm




                                                                                               Machine Learning – p. 5
Supervised Learning
 1. Training Set :- Training Examples where input and output are known from experiment
 2. x(i) :- ith Input value/vector
 3. y (i) :- ith Output value/vector
 4. (x(i) ,y (i) ) i=1...m:- Training set,m input and output training examples
 5. X :- space of input value/vector
 6. Y :- space of output value/vector.
 7. To describe the supervised learning problem,our goal is to learn a function h(x) : X → Y . such
    that h(x) is a good predictor of corresponding value of y.
 8. h(x) :- hypothesis




                                                                                          Machine Learning – p. 6
Continue
 1. When Target Domain is continuos we call learning problem a Regression Problem.
 2. When Y can take descrete value we call it as Classification Problem
 3. x ∈ ℜn ,n= no. of features
 4. xi :- jth feature of ith training set.
     j

 5. an ith training set can have different features (shapes,size,cost).
 6. To perform Supervised Learning,we must decide how we are going to do .
 7. hℜθ = θ0 + θ1 ∗ x1 + ... + θn ∗ xn .
 8. hθ (x) = Σθi ∗ xi where x0 = 1
 9. classifier =0,1




                                                                                     Machine Learning – p. 7
Support Vector Machine(SVM)
 Most classification tasks are not as simple ,more complex structure are needed to make optimal
   separation,full separation would require a curve




 We can see the original objects mapped i.e, rearranged using a set of mathematical functions called
   kernels.By this they are linearly separable
 Instead of constructing the complex curve all we have to do is to find a optimal line that can separate
    these as positive and negative examples
 SVM is primarily a classifier method that performs classification task by cosntructing
 Goal : To optimize decision boundary.

                                                                                             Machine Learning – p. 8
continue




  Binary classifier :-Y ǫ−1, 1

                                Machine Learning – p. 9
continue
  Y ǫ−1, 1
  hω,b (x) = g(ω T x + b)
  θi are repalced with ωi
  g(z) = 1, z ≥ 0
  g(z) = 0, otherwise
  ω = (ω1 , ω2 , ....., ωn )T




                                Machine Learning – p. 10
continue
  Functional Margin:
     Given (x(i) , y (i0 ) ith training set we define Functional Margin
     ˆ
     Υ(i) = y (i) (ω (T ) x + b)
     y (i) = −1 functional margin to be large we need (ω T x + b) to be large (more negative)
     y (i) = 1 functional margin to be large we need (ω T x + b) to be large (more positive)
     functional margin large,so that our predictio is correct and confident.
     Although it is not a good measure (scaling can have adverse effect ,it scales up just by
     exploiting the scaling freedom and make functional margin large )
     Functional Margin:
     Υ = min(Υˆ )i = 1, 2, 3, ...m.
     ˆ           (i)




                                                                                          Machine Learning – p. 11
continue




   Geometric Margin
     decision boundary corresponding to (ω,b)
     distance of A from decision boundary =AB Υ(i)
       (ω)
      ( ω )   unit vector pointing in same direction as ω

                       i     i    ω
                      x −Υ ∗           →B
                                  ω                 Machine Learning – p. 12
continue
 the above satisfy ω T ∗ x + b = 0
 solving :- γ (i) = (     ω
                          ω     ∗ x(i) +   b
                                           ω   )
 Geometrical Margin :

                  (i)         (i)      ω               b
              γ         =y          ∗(   ) ∗ x(i) +
                                       ω               ω
 It is invariant to scaling.

                        γ = min(γ (i) ), i = 1, 2..m


                                                           Machine Learning – p. 13
continue
   OPTIMAL MARGIN CLASSIFIER
   Given a Training set,it seems from previous natural
   desideration is to find decision
   boundary that optimizes the geometric margin,since
   this would reject a very confident set of
   prediction on the training set and a good fit to train
   data.
   Classifier that separates positive and negative
   training examples with gap.




                                                  Machine Learning – p. 14
continue
  This lead to the following Optimization Problem
  maxΥωb Υi = 1, 2, .., m
                                  ˆ
  such that y (i) ((ω)T xi + b) ≥ Υi = 1, 2, ...m
    ω 2 = 1 Functional Margin = Geometric Margin
  Functional margin at least Υ and we maximise Geometric margin.
              ˆ
              Υ
  maxΥωb     ω 2
  such thaty (i) ((ω)T xi          ˆ
                            + b) ≥ Υi = 1, 2, ...m
          ˆ
  impose Υ = 1
  minΥ,ω,b 1 ω 2
              2
  such that y (i) ((ω)T xi + b) ≥ 1i = 1, 2, ...m


  The following gives optimal Margin Classifier ,we can solve by QP quadratic programming Code.




                                                                                    Machine Learning – p. 15
continue
  gi (ω) = −y i (ω T xi + b) + 1
  ¸
  OPtical Margin Classifiers
  minΥ,ω,b 1 ω 2
              2
  such that gi (ω) ≤ 0
            ¸
  Dual
  maxαW (α) = Σαi − 1 Σy (i) y (j) αi αj < x(i) , x(j) > αi ≥ 0, i = 1, 2, ...m
                            2
  Σαi y (i) = 0i = 1, 2, , ...m




                                                                                  Machine Learning – p. 16
continue
  on Solving we get


                                          ω = Σαi y (i) x(i)


                        max( i : y (i) = −1)ω T X (i) + min( i : y (i) = 1)ω T X (i)
                b=
                                                     2
                      f (x) = ω T X + b = Σ( i = 1, 2, ..m)αi y (i) < xi , x > +b

                                       hω,b (x) = g(ω T x + b)




                                                                                       Machine Learning – p. 17
continue
  What if Data set is too hard to linearly separate
  We add slack variables ξ to allow misclassification of difficult noise reults called Soft Margin




  Primal

                                          1
                                  minγ,ω,b ( ω )2 + CΣm ξi
                                                      i=1
                                          2
  such that
                            y (i) (ω T ∗ x(i) + b) ≥ 1 − ξi i = 1, 2, ..., m
                                                ξi ≥ 0
  ,i=1,2,..m
  now we have permitted to chose functional margin less than 1

                                                C[Σξi
  controls                                                                                Machine Learning – p. 18
continue
  What if the data set is too hard to handle ,then we map input to higher dimentional using kernels
  φ(x) : x → ϕ(x)
  φ(x)=feature mapping which maps attribute to input features
  K(x, z) = φ(x)T φ(x)
  replace
                                       < x, z > withK(x, z)

  exploit it to use SVM implicitely to slove
  Kernels
  polynomial kernel ,Guassian kernel




                                                                                          Machine Learning – p. 19
continue



  Polynomial kernel

                                        
                                 x1 x1
                                    
                              x1 x2 
                                    
                                    
                              x1 x3 
                                    
                                    
                              x2 x1 
                                    
                              x2 x2 
                                    
                                    
                             x x 
                              2 3 
                                    
                      φ(x) = 
                              x3 x1 
                                     
                                    
                              x3 x2 
                                    
                                    
                              x3 x3 
                             √      
                              2cx1 
                                           Machine Learning – p. 20
                                    
continue
   Polynomial Kernel

                K(x, z) =< xT z + c >d
   Guassian kernel
                                       2
                             x−z
              K(x, z) = exp(               )
                             −2σ 2
   Kernel helps in computation by reducing time
   complexity



                                                  Machine Learning – p. 21
Machine Learning
 1. Natural Language processing
 2. Data Mining
 3. Speech Recognition
 4. Classifying web Documents,emails
 5. Statistics
 6. Economics
 7. Finance
 8. Robotics
 9. .. and so on




                                       Machine Learning – p. 22

Contenu connexe

Tendances

Supervised Machine Learning in R
Supervised  Machine Learning  in RSupervised  Machine Learning  in R
Supervised Machine Learning in RBabu Priyavrat
 
(Machine)Learning with limited labels(Machine)Learning with limited labels(Ma...
(Machine)Learning with limited labels(Machine)Learning with limited labels(Ma...(Machine)Learning with limited labels(Machine)Learning with limited labels(Ma...
(Machine)Learning with limited labels(Machine)Learning with limited labels(Ma...Eirini Ntoutsi
 
Machine learning
Machine learningMachine learning
Machine learningRohit Kumar
 
Lecture 2 Basic Concepts in Machine Learning for Language Technology
Lecture 2 Basic Concepts in Machine Learning for Language TechnologyLecture 2 Basic Concepts in Machine Learning for Language Technology
Lecture 2 Basic Concepts in Machine Learning for Language TechnologyMarina Santini
 
Machine learning ppt.
Machine learning ppt.Machine learning ppt.
Machine learning ppt.ASHOK KUMAR
 
Lecture #1: Introduction to machine learning (ML)
Lecture #1: Introduction to machine learning (ML)Lecture #1: Introduction to machine learning (ML)
Lecture #1: Introduction to machine learning (ML)butest
 
Machine Learning 1 - Introduction
Machine Learning 1 - IntroductionMachine Learning 1 - Introduction
Machine Learning 1 - Introductionbutest
 
Introduction To Machine Learning
Introduction To Machine LearningIntroduction To Machine Learning
Introduction To Machine LearningKnoldus Inc.
 
Machine learning ppt
Machine learning ppt Machine learning ppt
Machine learning ppt Poojamanic
 
Binary Class and Multi Class Strategies for Machine Learning
Binary Class and Multi Class Strategies for Machine LearningBinary Class and Multi Class Strategies for Machine Learning
Binary Class and Multi Class Strategies for Machine LearningPaxcel Technologies
 
Machine Learning in Finance
Machine Learning in FinanceMachine Learning in Finance
Machine Learning in FinanceHamed Vaheb
 
Methodological study of opinion mining and sentiment analysis techniques
Methodological study of opinion mining and sentiment analysis techniquesMethodological study of opinion mining and sentiment analysis techniques
Methodological study of opinion mining and sentiment analysis techniquesijsc
 
.NET Fest 2017. Игорь Кочетов. Классификация результатов тестирования произво...
.NET Fest 2017. Игорь Кочетов. Классификация результатов тестирования произво....NET Fest 2017. Игорь Кочетов. Классификация результатов тестирования произво...
.NET Fest 2017. Игорь Кочетов. Классификация результатов тестирования произво...NETFest
 
Machine learning with ADA Boost
Machine learning with ADA BoostMachine learning with ADA Boost
Machine learning with ADA BoostAman Patel
 

Tendances (20)

Supervised Machine Learning in R
Supervised  Machine Learning  in RSupervised  Machine Learning  in R
Supervised Machine Learning in R
 
(Machine)Learning with limited labels(Machine)Learning with limited labels(Ma...
(Machine)Learning with limited labels(Machine)Learning with limited labels(Ma...(Machine)Learning with limited labels(Machine)Learning with limited labels(Ma...
(Machine)Learning with limited labels(Machine)Learning with limited labels(Ma...
 
Machine learning
Machine learningMachine learning
Machine learning
 
Lecture 2 Basic Concepts in Machine Learning for Language Technology
Lecture 2 Basic Concepts in Machine Learning for Language TechnologyLecture 2 Basic Concepts in Machine Learning for Language Technology
Lecture 2 Basic Concepts in Machine Learning for Language Technology
 
Machine learning ppt.
Machine learning ppt.Machine learning ppt.
Machine learning ppt.
 
Lecture #1: Introduction to machine learning (ML)
Lecture #1: Introduction to machine learning (ML)Lecture #1: Introduction to machine learning (ML)
Lecture #1: Introduction to machine learning (ML)
 
Machine learning
Machine learningMachine learning
Machine learning
 
Machine Learning 1 - Introduction
Machine Learning 1 - IntroductionMachine Learning 1 - Introduction
Machine Learning 1 - Introduction
 
Introduction To Machine Learning
Introduction To Machine LearningIntroduction To Machine Learning
Introduction To Machine Learning
 
Machine learning ppt
Machine learning ppt Machine learning ppt
Machine learning ppt
 
Binary Class and Multi Class Strategies for Machine Learning
Binary Class and Multi Class Strategies for Machine LearningBinary Class and Multi Class Strategies for Machine Learning
Binary Class and Multi Class Strategies for Machine Learning
 
supervised learning
supervised learningsupervised learning
supervised learning
 
Machine Learning by Rj
Machine Learning by RjMachine Learning by Rj
Machine Learning by Rj
 
Machine Learning in Finance
Machine Learning in FinanceMachine Learning in Finance
Machine Learning in Finance
 
Machine learning
Machine learningMachine learning
Machine learning
 
Methodological study of opinion mining and sentiment analysis techniques
Methodological study of opinion mining and sentiment analysis techniquesMethodological study of opinion mining and sentiment analysis techniques
Methodological study of opinion mining and sentiment analysis techniques
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
 
.NET Fest 2017. Игорь Кочетов. Классификация результатов тестирования произво...
.NET Fest 2017. Игорь Кочетов. Классификация результатов тестирования произво....NET Fest 2017. Игорь Кочетов. Классификация результатов тестирования произво...
.NET Fest 2017. Игорь Кочетов. Классификация результатов тестирования произво...
 
Machine learning with ADA Boost
Machine learning with ADA BoostMachine learning with ADA Boost
Machine learning with ADA Boost
 
An overview of machine learning
An overview of machine learningAn overview of machine learning
An overview of machine learning
 

En vedette

IDS Survey on Entropy
IDS Survey  on Entropy IDS Survey  on Entropy
IDS Survey on Entropy Raj Kamal
 
Luncheon 2015-08-20 - Multi-vector DDOS Attacks Detection and Mitigation by P...
Luncheon 2015-08-20 - Multi-vector DDOS Attacks Detection and Mitigation by P...Luncheon 2015-08-20 - Multi-vector DDOS Attacks Detection and Mitigation by P...
Luncheon 2015-08-20 - Multi-vector DDOS Attacks Detection and Mitigation by P...North Texas Chapter of the ISSA
 
An analysis of Network Intrusion Detection System using SNORT
An analysis of Network Intrusion Detection System using SNORTAn analysis of Network Intrusion Detection System using SNORT
An analysis of Network Intrusion Detection System using SNORTijsrd.com
 
Lecture 1: linear SVM in the primal
Lecture 1: linear SVM in the primalLecture 1: linear SVM in the primal
Lecture 1: linear SVM in the primalStéphane Canu
 
Pompalar sesinoks 2010
Pompalar sesinoks 2010Pompalar sesinoks 2010
Pompalar sesinoks 2010SEM GRUP
 
Sistem çözümleri sesinoks 2010
Sistem çözümleri sesinoks 2010Sistem çözümleri sesinoks 2010
Sistem çözümleri sesinoks 2010SEM GRUP
 
Discipline Formation Program
Discipline Formation ProgramDiscipline Formation Program
Discipline Formation Programlaylo mark
 
SEM GRUP AdWords 101-1A
SEM GRUP AdWords 101-1ASEM GRUP AdWords 101-1A
SEM GRUP AdWords 101-1ASEM GRUP
 
Lecture 9 - Machine Learning and Support Vector Machines (SVM)
Lecture 9 - Machine Learning and Support Vector Machines (SVM)Lecture 9 - Machine Learning and Support Vector Machines (SVM)
Lecture 9 - Machine Learning and Support Vector Machines (SVM)Sean Golliher
 
bag-of-words models
bag-of-words models bag-of-words models
bag-of-words models Xiaotao Zou
 
Intrusion Detection System
Intrusion Detection SystemIntrusion Detection System
Intrusion Detection SystemDevil's Cafe
 
Przykład zadania Analiza Mnożnikowa
Przykład zadania Analiza MnożnikowaPrzykład zadania Analiza Mnożnikowa
Przykład zadania Analiza MnożnikowaTomasz Jeziorski
 
Projecte univers
Projecte universProjecte univers
Projecte universyllmos2
 

En vedette (20)

IDS Survey on Entropy
IDS Survey  on Entropy IDS Survey  on Entropy
IDS Survey on Entropy
 
Luncheon 2015-08-20 - Multi-vector DDOS Attacks Detection and Mitigation by P...
Luncheon 2015-08-20 - Multi-vector DDOS Attacks Detection and Mitigation by P...Luncheon 2015-08-20 - Multi-vector DDOS Attacks Detection and Mitigation by P...
Luncheon 2015-08-20 - Multi-vector DDOS Attacks Detection and Mitigation by P...
 
An analysis of Network Intrusion Detection System using SNORT
An analysis of Network Intrusion Detection System using SNORTAn analysis of Network Intrusion Detection System using SNORT
An analysis of Network Intrusion Detection System using SNORT
 
Lecture 1: linear SVM in the primal
Lecture 1: linear SVM in the primalLecture 1: linear SVM in the primal
Lecture 1: linear SVM in the primal
 
Earth
EarthEarth
Earth
 
Pompalar sesinoks 2010
Pompalar sesinoks 2010Pompalar sesinoks 2010
Pompalar sesinoks 2010
 
Mars
MarsMars
Mars
 
Sistem çözümleri sesinoks 2010
Sistem çözümleri sesinoks 2010Sistem çözümleri sesinoks 2010
Sistem çözümleri sesinoks 2010
 
Discipline Formation Program
Discipline Formation ProgramDiscipline Formation Program
Discipline Formation Program
 
SEM GRUP AdWords 101-1A
SEM GRUP AdWords 101-1ASEM GRUP AdWords 101-1A
SEM GRUP AdWords 101-1A
 
Pluto
PlutoPluto
Pluto
 
Mercuri
MercuriMercuri
Mercuri
 
Jupiter
JupiterJupiter
Jupiter
 
Lecture 9 - Machine Learning and Support Vector Machines (SVM)
Lecture 9 - Machine Learning and Support Vector Machines (SVM)Lecture 9 - Machine Learning and Support Vector Machines (SVM)
Lecture 9 - Machine Learning and Support Vector Machines (SVM)
 
bag-of-words models
bag-of-words models bag-of-words models
bag-of-words models
 
Intrusion Detection System
Intrusion Detection SystemIntrusion Detection System
Intrusion Detection System
 
Analiza mnożnikowa
Analiza mnożnikowaAnaliza mnożnikowa
Analiza mnożnikowa
 
Przykład zadania Analiza Mnożnikowa
Przykład zadania Analiza MnożnikowaPrzykład zadania Analiza Mnożnikowa
Przykład zadania Analiza Mnożnikowa
 
Model liniowy Holta
Model liniowy HoltaModel liniowy Holta
Model liniowy Holta
 
Projecte univers
Projecte universProjecte univers
Projecte univers
 

Similaire à Machine learning SVM

Incorporating Prior Domain Knowledge Into Inductive Machine ...
Incorporating Prior Domain Knowledge Into Inductive Machine ...Incorporating Prior Domain Knowledge Into Inductive Machine ...
Incorporating Prior Domain Knowledge Into Inductive Machine ...butest
 
Unit 1 - ML - Introduction to Machine Learning.pptx
Unit 1 - ML - Introduction to Machine Learning.pptxUnit 1 - ML - Introduction to Machine Learning.pptx
Unit 1 - ML - Introduction to Machine Learning.pptxjawad184956
 
Chapter 6 - Learning data and analytics course
Chapter 6 - Learning data and analytics courseChapter 6 - Learning data and analytics course
Chapter 6 - Learning data and analytics coursegideymichael
 
Machine Learning Chapter one introduction
Machine Learning Chapter one introductionMachine Learning Chapter one introduction
Machine Learning Chapter one introductionARVIND SARDAR
 
Introduction of Machine Learning
Introduction of Machine LearningIntroduction of Machine Learning
Introduction of Machine LearningMohammad Hossain
 
Introduction to Machine Learning.
Introduction to Machine Learning.Introduction to Machine Learning.
Introduction to Machine Learning.butest
 
Intro/Overview on Machine Learning Presentation
Intro/Overview on Machine Learning PresentationIntro/Overview on Machine Learning Presentation
Intro/Overview on Machine Learning PresentationAnkit Gupta
 
Getting started in machine learning
Getting started in  machine learning Getting started in  machine learning
Getting started in machine learning Mbakaya Kwatukha
 
Rahul_Kirtoniya_11800121032_CSE_Machine_Learning.pptx
Rahul_Kirtoniya_11800121032_CSE_Machine_Learning.pptxRahul_Kirtoniya_11800121032_CSE_Machine_Learning.pptx
Rahul_Kirtoniya_11800121032_CSE_Machine_Learning.pptxRahulKirtoniya
 
Machine Learning: Foundations Course Number 0368403401
Machine Learning: Foundations Course Number 0368403401Machine Learning: Foundations Course Number 0368403401
Machine Learning: Foundations Course Number 0368403401butest
 
Machine Learning: Foundations Course Number 0368403401
Machine Learning: Foundations Course Number 0368403401Machine Learning: Foundations Course Number 0368403401
Machine Learning: Foundations Course Number 0368403401butest
 
Classification of Machine Learning Algorithms
Classification of Machine Learning AlgorithmsClassification of Machine Learning Algorithms
Classification of Machine Learning AlgorithmsAM Publications
 
MACHINE LEARNING(R17A0534).pdf
MACHINE LEARNING(R17A0534).pdfMACHINE LEARNING(R17A0534).pdf
MACHINE LEARNING(R17A0534).pdfFayyoOlani
 
Lecture 09(introduction to machine learning)
Lecture 09(introduction to machine learning)Lecture 09(introduction to machine learning)
Lecture 09(introduction to machine learning)Jeet Das
 
Machine Learning Ch 1.ppt
Machine Learning Ch 1.pptMachine Learning Ch 1.ppt
Machine Learning Ch 1.pptARVIND SARDAR
 
01. Machine can learn_machine learning.pdf
01. Machine can learn_machine learning.pdf01. Machine can learn_machine learning.pdf
01. Machine can learn_machine learning.pdfnafisakhan14
 
A Few Useful Things to Know about Machine Learning
A Few Useful Things to Know about Machine LearningA Few Useful Things to Know about Machine Learning
A Few Useful Things to Know about Machine Learningnep_test_account
 
课堂讲义(最后更新:2009-9-25)
课堂讲义(最后更新:2009-9-25)课堂讲义(最后更新:2009-9-25)
课堂讲义(最后更新:2009-9-25)butest
 
Comparative Analysis: Effective Information Retrieval Using Different Learnin...
Comparative Analysis: Effective Information Retrieval Using Different Learnin...Comparative Analysis: Effective Information Retrieval Using Different Learnin...
Comparative Analysis: Effective Information Retrieval Using Different Learnin...RSIS International
 

Similaire à Machine learning SVM (20)

Incorporating Prior Domain Knowledge Into Inductive Machine ...
Incorporating Prior Domain Knowledge Into Inductive Machine ...Incorporating Prior Domain Knowledge Into Inductive Machine ...
Incorporating Prior Domain Knowledge Into Inductive Machine ...
 
Unit 1 - ML - Introduction to Machine Learning.pptx
Unit 1 - ML - Introduction to Machine Learning.pptxUnit 1 - ML - Introduction to Machine Learning.pptx
Unit 1 - ML - Introduction to Machine Learning.pptx
 
Chapter 6 - Learning data and analytics course
Chapter 6 - Learning data and analytics courseChapter 6 - Learning data and analytics course
Chapter 6 - Learning data and analytics course
 
Machine Learning Chapter one introduction
Machine Learning Chapter one introductionMachine Learning Chapter one introduction
Machine Learning Chapter one introduction
 
Introduction of Machine Learning
Introduction of Machine LearningIntroduction of Machine Learning
Introduction of Machine Learning
 
Introduction to Machine Learning.
Introduction to Machine Learning.Introduction to Machine Learning.
Introduction to Machine Learning.
 
ML_Lecture_1.ppt
ML_Lecture_1.pptML_Lecture_1.ppt
ML_Lecture_1.ppt
 
Intro/Overview on Machine Learning Presentation
Intro/Overview on Machine Learning PresentationIntro/Overview on Machine Learning Presentation
Intro/Overview on Machine Learning Presentation
 
Getting started in machine learning
Getting started in  machine learning Getting started in  machine learning
Getting started in machine learning
 
Rahul_Kirtoniya_11800121032_CSE_Machine_Learning.pptx
Rahul_Kirtoniya_11800121032_CSE_Machine_Learning.pptxRahul_Kirtoniya_11800121032_CSE_Machine_Learning.pptx
Rahul_Kirtoniya_11800121032_CSE_Machine_Learning.pptx
 
Machine Learning: Foundations Course Number 0368403401
Machine Learning: Foundations Course Number 0368403401Machine Learning: Foundations Course Number 0368403401
Machine Learning: Foundations Course Number 0368403401
 
Machine Learning: Foundations Course Number 0368403401
Machine Learning: Foundations Course Number 0368403401Machine Learning: Foundations Course Number 0368403401
Machine Learning: Foundations Course Number 0368403401
 
Classification of Machine Learning Algorithms
Classification of Machine Learning AlgorithmsClassification of Machine Learning Algorithms
Classification of Machine Learning Algorithms
 
MACHINE LEARNING(R17A0534).pdf
MACHINE LEARNING(R17A0534).pdfMACHINE LEARNING(R17A0534).pdf
MACHINE LEARNING(R17A0534).pdf
 
Lecture 09(introduction to machine learning)
Lecture 09(introduction to machine learning)Lecture 09(introduction to machine learning)
Lecture 09(introduction to machine learning)
 
Machine Learning Ch 1.ppt
Machine Learning Ch 1.pptMachine Learning Ch 1.ppt
Machine Learning Ch 1.ppt
 
01. Machine can learn_machine learning.pdf
01. Machine can learn_machine learning.pdf01. Machine can learn_machine learning.pdf
01. Machine can learn_machine learning.pdf
 
A Few Useful Things to Know about Machine Learning
A Few Useful Things to Know about Machine LearningA Few Useful Things to Know about Machine Learning
A Few Useful Things to Know about Machine Learning
 
课堂讲义(最后更新:2009-9-25)
课堂讲义(最后更新:2009-9-25)课堂讲义(最后更新:2009-9-25)
课堂讲义(最后更新:2009-9-25)
 
Comparative Analysis: Effective Information Retrieval Using Different Learnin...
Comparative Analysis: Effective Information Retrieval Using Different Learnin...Comparative Analysis: Effective Information Retrieval Using Different Learnin...
Comparative Analysis: Effective Information Retrieval Using Different Learnin...
 

Dernier

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 

Dernier (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 

Machine learning SVM

  • 1. Machine Learning Supervised Learning and Support Vector Machine Raj Kamal r.kamal@iitg.ernet.in Department of Mathematics Indian Institute of Technology,Guwahati Guwahati-781039,India Machine Learning – p. 1
  • 2. Seminar 1-1
  • 3. Outline of the talk Introduction Machine Learning – p. 2
  • 4. Outline of the talk Introduction Motivation Machine Learning – p. 2
  • 5. Outline of the talk Introduction Motivation Support Vector Machines Machine Learning – p. 2
  • 6. Outline of the talk Introduction Motivation Support Vector Machines Softwares Machine Learning – p. 2
  • 7. Outline of the talk Introduction Motivation Support Vector Machines Softwares Applications Machine Learning – p. 2
  • 8. Outline of the talk Introduction Motivation Support Vector Machines Softwares Applications Conclusion Machine Learning – p. 2
  • 9. Outline of the talk Introduction Motivation Support Vector Machines Softwares Applications Conclusion Machine Learning – p. 2
  • 10. Machine Learning Machine learning, a branch of artificial intelligence, is a scientific discipline concerned with the design and development of algorithms that allow computers to evolve behaviors based on empirical data, such as from sensor data or databases. Here computer learns the algorithms from the experience. Idea: Synthesize computer programs by learning from representative examples of input (and output) data. Rationale Learning from Examples: A. For many problems, there is no known method for computing the desired output from a set of inputs. B. For other problems, computation according to the known correct method may be too expensive. How can we build computer systems that automatically improve with experience, and what are the fundamental laws that govern all learning processes? Machine Learning Machine Learning – p. 3
  • 11. Machine Learning Machine learning, a branch of artificial intelligence, is a scientific discipline concerned with the design and development of algorithms that allow computers to evolve behaviors based on empirical data, such as from sensor data or databases. Here computer learns the algorithms from the experience. Idea: Synthesize computer programs by learning from representative examples of input (and output) data. Rationale Learning from Examples: A. For many problems, there is no known method for computing the desired output from a set of inputs. B. For other problems, computation according to the known correct method may be too expensive. How can we build computer systems that automatically improve with experience, and what are the fundamental laws that govern all learning processes? Machine Learning Machine Learning – p. 3
  • 12. Machine Learning Machine learning, a branch of artificial intelligence, is a scientific discipline concerned with the design and development of algorithms that allow computers to evolve behaviors based on empirical data, such as from sensor data or databases. Here computer learns the algorithms from the experience. Idea: Synthesize computer programs by learning from representative examples of input (and output) data. Rationale Learning from Examples: A. For many problems, there is no known method for computing the desired output from a set of inputs. B. For other problems, computation according to the known correct method may be too expensive. How can we build computer systems that automatically improve with experience, and what are the fundamental laws that govern all learning processes? Machine Learning Machine Learning – p. 3
  • 13. continue What is the Learning Problem? Learning = Improving with experience at some task 1. Improve over task T , 2. with respect to performance measure P 3. based on experience E Machine Learning – p. 4
  • 14. continue What is the Learning Problem? Learning = Improving with experience at some task 1. Improve over task T , 2. with respect to performance measure P 3. based on experience E Machine Learning – p. 4
  • 15. Variants of Machine Learning 1. Supervised Learning : Given a set of label training-data xi, yi , with xi be a set of samples and yi a set of labels. 2. Unsupervised Learning : Given only a set of data xi . Learning without output values (data exploration, e.g. clustering). 3. Query Learning : Learning where the learner can query the environment about the output associated with a particular input. 4. Reinforcement Learning : Learning where the learner has a range of actions which it can take to attempt to move towards states where it can expect high rewards. Cocktail Party Problem ,Sound overlapping and verification Problems are solved using methods of statistics: Regression,EM algorithm,MLE algorithm Machine Learning – p. 5
  • 16. Variants of Machine Learning 1. Supervised Learning : Given a set of label training-data xi, yi , with xi be a set of samples and yi a set of labels. 2. Unsupervised Learning : Given only a set of data xi . Learning without output values (data exploration, e.g. clustering). 3. Query Learning : Learning where the learner can query the environment about the output associated with a particular input. 4. Reinforcement Learning : Learning where the learner has a range of actions which it can take to attempt to move towards states where it can expect high rewards. Cocktail Party Problem ,Sound overlapping and verification Problems are solved using methods of statistics: Regression,EM algorithm,MLE algorithm Machine Learning – p. 5
  • 17. Variants of Machine Learning 1. Supervised Learning : Given a set of label training-data xi, yi , with xi be a set of samples and yi a set of labels. 2. Unsupervised Learning : Given only a set of data xi . Learning without output values (data exploration, e.g. clustering). 3. Query Learning : Learning where the learner can query the environment about the output associated with a particular input. 4. Reinforcement Learning : Learning where the learner has a range of actions which it can take to attempt to move towards states where it can expect high rewards. Cocktail Party Problem ,Sound overlapping and verification Problems are solved using methods of statistics: Regression,EM algorithm,MLE algorithm Machine Learning – p. 5
  • 18. Supervised Learning 1. Training Set :- Training Examples where input and output are known from experiment 2. x(i) :- ith Input value/vector 3. y (i) :- ith Output value/vector 4. (x(i) ,y (i) ) i=1...m:- Training set,m input and output training examples 5. X :- space of input value/vector 6. Y :- space of output value/vector. 7. To describe the supervised learning problem,our goal is to learn a function h(x) : X → Y . such that h(x) is a good predictor of corresponding value of y. 8. h(x) :- hypothesis Machine Learning – p. 6
  • 19. Continue 1. When Target Domain is continuos we call learning problem a Regression Problem. 2. When Y can take descrete value we call it as Classification Problem 3. x ∈ ℜn ,n= no. of features 4. xi :- jth feature of ith training set. j 5. an ith training set can have different features (shapes,size,cost). 6. To perform Supervised Learning,we must decide how we are going to do . 7. hℜθ = θ0 + θ1 ∗ x1 + ... + θn ∗ xn . 8. hθ (x) = Σθi ∗ xi where x0 = 1 9. classifier =0,1 Machine Learning – p. 7
  • 20. Support Vector Machine(SVM) Most classification tasks are not as simple ,more complex structure are needed to make optimal separation,full separation would require a curve We can see the original objects mapped i.e, rearranged using a set of mathematical functions called kernels.By this they are linearly separable Instead of constructing the complex curve all we have to do is to find a optimal line that can separate these as positive and negative examples SVM is primarily a classifier method that performs classification task by cosntructing Goal : To optimize decision boundary. Machine Learning – p. 8
  • 21. continue Binary classifier :-Y ǫ−1, 1 Machine Learning – p. 9
  • 22. continue Y ǫ−1, 1 hω,b (x) = g(ω T x + b) θi are repalced with ωi g(z) = 1, z ≥ 0 g(z) = 0, otherwise ω = (ω1 , ω2 , ....., ωn )T Machine Learning – p. 10
  • 23. continue Functional Margin: Given (x(i) , y (i0 ) ith training set we define Functional Margin ˆ Υ(i) = y (i) (ω (T ) x + b) y (i) = −1 functional margin to be large we need (ω T x + b) to be large (more negative) y (i) = 1 functional margin to be large we need (ω T x + b) to be large (more positive) functional margin large,so that our predictio is correct and confident. Although it is not a good measure (scaling can have adverse effect ,it scales up just by exploiting the scaling freedom and make functional margin large ) Functional Margin: Υ = min(Υˆ )i = 1, 2, 3, ...m. ˆ (i) Machine Learning – p. 11
  • 24. continue Geometric Margin decision boundary corresponding to (ω,b) distance of A from decision boundary =AB Υ(i) (ω) ( ω ) unit vector pointing in same direction as ω i i ω x −Υ ∗ →B ω Machine Learning – p. 12
  • 25. continue the above satisfy ω T ∗ x + b = 0 solving :- γ (i) = ( ω ω ∗ x(i) + b ω ) Geometrical Margin : (i) (i) ω b γ =y ∗( ) ∗ x(i) + ω ω It is invariant to scaling. γ = min(γ (i) ), i = 1, 2..m Machine Learning – p. 13
  • 26. continue OPTIMAL MARGIN CLASSIFIER Given a Training set,it seems from previous natural desideration is to find decision boundary that optimizes the geometric margin,since this would reject a very confident set of prediction on the training set and a good fit to train data. Classifier that separates positive and negative training examples with gap. Machine Learning – p. 14
  • 27. continue This lead to the following Optimization Problem maxΥωb Υi = 1, 2, .., m ˆ such that y (i) ((ω)T xi + b) ≥ Υi = 1, 2, ...m ω 2 = 1 Functional Margin = Geometric Margin Functional margin at least Υ and we maximise Geometric margin. ˆ Υ maxΥωb ω 2 such thaty (i) ((ω)T xi ˆ + b) ≥ Υi = 1, 2, ...m ˆ impose Υ = 1 minΥ,ω,b 1 ω 2 2 such that y (i) ((ω)T xi + b) ≥ 1i = 1, 2, ...m The following gives optimal Margin Classifier ,we can solve by QP quadratic programming Code. Machine Learning – p. 15
  • 28. continue gi (ω) = −y i (ω T xi + b) + 1 ¸ OPtical Margin Classifiers minΥ,ω,b 1 ω 2 2 such that gi (ω) ≤ 0 ¸ Dual maxαW (α) = Σαi − 1 Σy (i) y (j) αi αj < x(i) , x(j) > αi ≥ 0, i = 1, 2, ...m 2 Σαi y (i) = 0i = 1, 2, , ...m Machine Learning – p. 16
  • 29. continue on Solving we get ω = Σαi y (i) x(i) max( i : y (i) = −1)ω T X (i) + min( i : y (i) = 1)ω T X (i) b= 2 f (x) = ω T X + b = Σ( i = 1, 2, ..m)αi y (i) < xi , x > +b hω,b (x) = g(ω T x + b) Machine Learning – p. 17
  • 30. continue What if Data set is too hard to linearly separate We add slack variables ξ to allow misclassification of difficult noise reults called Soft Margin Primal 1 minγ,ω,b ( ω )2 + CΣm ξi i=1 2 such that y (i) (ω T ∗ x(i) + b) ≥ 1 − ξi i = 1, 2, ..., m ξi ≥ 0 ,i=1,2,..m now we have permitted to chose functional margin less than 1 C[Σξi controls Machine Learning – p. 18
  • 31. continue What if the data set is too hard to handle ,then we map input to higher dimentional using kernels φ(x) : x → ϕ(x) φ(x)=feature mapping which maps attribute to input features K(x, z) = φ(x)T φ(x) replace < x, z > withK(x, z) exploit it to use SVM implicitely to slove Kernels polynomial kernel ,Guassian kernel Machine Learning – p. 19
  • 32. continue Polynomial kernel   x1 x1    x1 x2       x1 x3       x2 x1     x2 x2      x x   2 3    φ(x) =   x3 x1      x3 x2       x3 x3  √   2cx1    Machine Learning – p. 20  
  • 33. continue Polynomial Kernel K(x, z) =< xT z + c >d Guassian kernel 2 x−z K(x, z) = exp( ) −2σ 2 Kernel helps in computation by reducing time complexity Machine Learning – p. 21
  • 34. Machine Learning 1. Natural Language processing 2. Data Mining 3. Speech Recognition 4. Classifying web Documents,emails 5. Statistics 6. Economics 7. Finance 8. Robotics 9. .. and so on Machine Learning – p. 22