SlideShare a Scribd company logo
1 of 13
Download to read offline
Supervised Learning
Dr. Varun Kumar
Dr. Varun Kumar Lecture 3 1 / 13
Outlines
1 Introduction to Supervised Learning
2 Motivation:
3 Scope of Machine Learning:
4 References
Dr. Varun Kumar Lecture 3 2 / 13
Introduction to Supervised Learning:
Introduction:
In supervised learning, the aim is to learn a mapping from the input to an
output whose correct values are provided by a supervisor.
Ex- To find the family car based on classification.
Attributes:
It should be not expensive, i.e, p1 < price < p2.
Its engine capacity should be better, e1 hp < ec < e2 hp
It should be spacious.
Key Points:
Other attributes like, comfort, milage, top speed so on has not
been considered in the case. For analytical simplicity, we consider only
price and engine capacity.
Class learning is finding a description that is shared by all positive
examples and none of the negative examples.
Dr. Varun Kumar Lecture 3 3 / 13
Positive and Negative Example:
Positive and Negative Example:
When car price and their engine capacity follow the relation, i.e,
(p1 < price < p2) & (e1 < ec < e2) called as positive otherwise negative
example.
Training set for the class of a family car.
Figure: Each data point corresponds to one example car. ’+’ denotes a positive
example of the class, and ’-’ denotes a negative example.
Dr. Varun Kumar Lecture 3 4 / 13
Actual Hypothesis H
Actual Hypothesis H
The class of family car is a rectangle in the price-engine power space.
Actual hypothesis H contain all possibilities, where the car comes under
the family car at given constraints.
Dr. Varun Kumar Lecture 3 5 / 13
Mathematical Intuition:
Mathematical representation:
Let input attribute is expressed as
x =
x1
x2
x1 → Price & x2 → Engine capacity
Similarly r is a vector that reveals the condition of +ve and -ve example.
r =
1, if x is a positive example
0, if x is a negative example
Each car is represented by such an ordered pair (x, r).
Training set: Let X is the training set that gives the information about N
different cars. Mathematically,
X = {xt
, rt
}N
t=1 t → refers indexes for different examples in the set.
Dr. Varun Kumar Lecture 3 6 / 13
Learning Hypothesis h:
Aim of learning hypothesis h
Let C is the class of family cars. Aim of particular hypothesis is as follow
i. To reduce the search space.
ii. h ∈ H and H ≥ h.
The learning algorithm finds the particular hypothesis h such that h ∈ H,
to approximate C as closely as possible.
Let us say the hypothesis h makes a prediction for an instance x such that
h(x) =
1, if h classifies x as a positive example
0, if h classifies x as a negative example
Key points :
In real life we do not know C(x).
We cannot evaluate how well h(x) matches C(x).
We have a training set X, which is a small subset of large problem.
Dr. Varun Kumar Lecture 3 7 / 13
Error of hypothesis h:
Error of hypothesis h:
The error of hypothesis h given the training set X is
E(h|X) =
N
t=1
1(h(xt
) = rt
)
where 1(a = b) is 1 if a = b and is 0 if a = b.
Dr. Varun Kumar Lecture 3 8 / 13
Generalization:
Problem of generalization:
Let x1 and x2 are real-valued.
There are infinitely many such h that satisfy the condition, i.e, E=0.
At the boundary between positive and negative examples, different
candidate hypotheses may make different generalization predictions.
The problem of generalization refers that how well our hypothesis will
correctly classify future examples that are not part of the training set.
Most specific hypothesis:
The most specific hypothesis S is the tightest rectangle that includes all
the positive examples and none of the negative examples.
Most general hypothesis
The most general hypothesis G is the largest rectangle that includes all the
positive examples and none of the negative examples.
Dr. Varun Kumar Lecture 3 9 / 13
Comparison of different hypothesis:
Comparison of different hypothesis:
Any h ∈ H between S and G is a valid hypothesis with no error, said
to be consistent with the training set.
At another training set, S, G, version space, the parameters and thus
the learned hypothesis h can be different.
Dr. Varun Kumar Lecture 3 10 / 13
Margin:
Margin:
Actually, depending on X and H, there may be several Si and Gj that
make up the S-set and the G-set.
Margin:
The distance between boundary and the instances closest to it.
Margin decides the degree of accuracy of learning hypothesis h.
Dr. Varun Kumar Lecture 3 11 / 13
Probably Approximately Correct (PAC) Learning:
PAC learning:
In PAC learning,
Let a given class of problem is C.
Unknown examples have fixed probability distribution, i.e, p(x).
We want to find the number of examples N such that with probability
at least 1 − δ, the hypothesis h has error at most , for arbitrary
δ ≥ 1/2 and > 0.
P(C∆h ≤ ) ≥ 1 − δ, where C∆h is the region of difference between
C and h.
Dr. Varun Kumar Lecture 3 12 / 13
References
E. Alpaydin, Introduction to machine learning. MIT press, 2020.
T. M. Mitchell, The discipline of machine learning. Carnegie Mellon University,
School of Computer Science, Machine Learning , 2006, vol. 9.
J. Grus, Data science from scratch: first principles with python. O’Reilly Media,
2019.
Dr. Varun Kumar Lecture 3 13 / 13

More Related Content

Similar to Lecture 3 (Supervised learning)

Supervised_Learning.ppt
Supervised_Learning.pptSupervised_Learning.ppt
Supervised_Learning.pptHari629251
 
Vc dimension in Machine Learning
Vc dimension in Machine LearningVc dimension in Machine Learning
Vc dimension in Machine LearningVARUN KUMAR
 
lecture_mooney.ppt
lecture_mooney.pptlecture_mooney.ppt
lecture_mooney.pptbutest
 
Lecture 7
Lecture 7Lecture 7
Lecture 7butest
 
Lecture 7
Lecture 7Lecture 7
Lecture 7butest
 
Machine learning (4)
Machine learning (4)Machine learning (4)
Machine learning (4)NYversity
 
Alpaydin - Chapter 2
Alpaydin - Chapter 2Alpaydin - Chapter 2
Alpaydin - Chapter 2butest
 
Cs229 notes4
Cs229 notes4Cs229 notes4
Cs229 notes4VuTran231
 
Chap13 additional topics in regression analysis
Chap13 additional topics in regression analysisChap13 additional topics in regression analysis
Chap13 additional topics in regression analysisJudianto Nugroho
 
Machine Learning
Machine LearningMachine Learning
Machine Learningbutest
 
Bayesian Learning- part of machine learning
Bayesian Learning-  part of machine learningBayesian Learning-  part of machine learning
Bayesian Learning- part of machine learningkensaleste
 
A Theory of the Learnable; PAC Learning
A Theory of the Learnable; PAC LearningA Theory of the Learnable; PAC Learning
A Theory of the Learnable; PAC Learningdhruvgairola
 
"PAC Learning - a discussion on the original paper by Valiant" presentation @...
"PAC Learning - a discussion on the original paper by Valiant" presentation @..."PAC Learning - a discussion on the original paper by Valiant" presentation @...
"PAC Learning - a discussion on the original paper by Valiant" presentation @...Adrian Florea
 
AML_030607.ppt
AML_030607.pptAML_030607.ppt
AML_030607.pptbutest
 
Understanding Blackbox Prediction via Influence Functions
Understanding Blackbox Prediction via Influence FunctionsUnderstanding Blackbox Prediction via Influence Functions
Understanding Blackbox Prediction via Influence FunctionsSEMINARGROOT
 

Similar to Lecture 3 (Supervised learning) (20)

Supervised_Learning.ppt
Supervised_Learning.pptSupervised_Learning.ppt
Supervised_Learning.ppt
 
Vc dimension in Machine Learning
Vc dimension in Machine LearningVc dimension in Machine Learning
Vc dimension in Machine Learning
 
lecture_mooney.ppt
lecture_mooney.pptlecture_mooney.ppt
lecture_mooney.ppt
 
Lecture 7
Lecture 7Lecture 7
Lecture 7
 
Lecture 7
Lecture 7Lecture 7
Lecture 7
 
Machine learning (4)
Machine learning (4)Machine learning (4)
Machine learning (4)
 
i2ml3e-chap2.pptx
i2ml3e-chap2.pptxi2ml3e-chap2.pptx
i2ml3e-chap2.pptx
 
I2ml3e chap2
I2ml3e chap2I2ml3e chap2
I2ml3e chap2
 
Alpaydin - Chapter 2
Alpaydin - Chapter 2Alpaydin - Chapter 2
Alpaydin - Chapter 2
 
Cs229 notes4
Cs229 notes4Cs229 notes4
Cs229 notes4
 
.ppt
.ppt.ppt
.ppt
 
Chap13 additional topics in regression analysis
Chap13 additional topics in regression analysisChap13 additional topics in regression analysis
Chap13 additional topics in regression analysis
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine Learning
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
 
ppt
pptppt
ppt
 
Bayesian Learning- part of machine learning
Bayesian Learning-  part of machine learningBayesian Learning-  part of machine learning
Bayesian Learning- part of machine learning
 
A Theory of the Learnable; PAC Learning
A Theory of the Learnable; PAC LearningA Theory of the Learnable; PAC Learning
A Theory of the Learnable; PAC Learning
 
"PAC Learning - a discussion on the original paper by Valiant" presentation @...
"PAC Learning - a discussion on the original paper by Valiant" presentation @..."PAC Learning - a discussion on the original paper by Valiant" presentation @...
"PAC Learning - a discussion on the original paper by Valiant" presentation @...
 
AML_030607.ppt
AML_030607.pptAML_030607.ppt
AML_030607.ppt
 
Understanding Blackbox Prediction via Influence Functions
Understanding Blackbox Prediction via Influence FunctionsUnderstanding Blackbox Prediction via Influence Functions
Understanding Blackbox Prediction via Influence Functions
 

More from VARUN KUMAR

Distributed rc Model
Distributed rc ModelDistributed rc Model
Distributed rc ModelVARUN KUMAR
 
Electrical Wire Model
Electrical Wire ModelElectrical Wire Model
Electrical Wire ModelVARUN KUMAR
 
Interconnect Parameter in Digital VLSI Design
Interconnect Parameter in Digital VLSI DesignInterconnect Parameter in Digital VLSI Design
Interconnect Parameter in Digital VLSI DesignVARUN KUMAR
 
Introduction to Digital VLSI Design
Introduction to Digital VLSI DesignIntroduction to Digital VLSI Design
Introduction to Digital VLSI DesignVARUN KUMAR
 
Challenges of Massive MIMO System
Challenges of Massive MIMO SystemChallenges of Massive MIMO System
Challenges of Massive MIMO SystemVARUN KUMAR
 
E-democracy or Digital Democracy
E-democracy or Digital DemocracyE-democracy or Digital Democracy
E-democracy or Digital DemocracyVARUN KUMAR
 
Ethics of Parasitic Computing
Ethics of Parasitic ComputingEthics of Parasitic Computing
Ethics of Parasitic ComputingVARUN KUMAR
 
Action Lines of Geneva Plan of Action
Action Lines of Geneva Plan of ActionAction Lines of Geneva Plan of Action
Action Lines of Geneva Plan of ActionVARUN KUMAR
 
Geneva Plan of Action
Geneva Plan of ActionGeneva Plan of Action
Geneva Plan of ActionVARUN KUMAR
 
Fair Use in the Electronic Age
Fair Use in the Electronic AgeFair Use in the Electronic Age
Fair Use in the Electronic AgeVARUN KUMAR
 
Software as a Property
Software as a PropertySoftware as a Property
Software as a PropertyVARUN KUMAR
 
Orthogonal Polynomial
Orthogonal PolynomialOrthogonal Polynomial
Orthogonal PolynomialVARUN KUMAR
 
Patent Protection
Patent ProtectionPatent Protection
Patent ProtectionVARUN KUMAR
 
Copyright Vs Patent and Trade Secrecy Law
Copyright Vs Patent and Trade Secrecy LawCopyright Vs Patent and Trade Secrecy Law
Copyright Vs Patent and Trade Secrecy LawVARUN KUMAR
 
Property Right and Software
Property Right and SoftwareProperty Right and Software
Property Right and SoftwareVARUN KUMAR
 
Investigating Data Trials
Investigating Data TrialsInvestigating Data Trials
Investigating Data TrialsVARUN KUMAR
 
Gaussian Numerical Integration
Gaussian Numerical IntegrationGaussian Numerical Integration
Gaussian Numerical IntegrationVARUN KUMAR
 
Censorship and Controversy
Censorship and ControversyCensorship and Controversy
Censorship and ControversyVARUN KUMAR
 
Romberg's Integration
Romberg's IntegrationRomberg's Integration
Romberg's IntegrationVARUN KUMAR
 
Introduction to Censorship
Introduction to Censorship Introduction to Censorship
Introduction to Censorship VARUN KUMAR
 

More from VARUN KUMAR (20)

Distributed rc Model
Distributed rc ModelDistributed rc Model
Distributed rc Model
 
Electrical Wire Model
Electrical Wire ModelElectrical Wire Model
Electrical Wire Model
 
Interconnect Parameter in Digital VLSI Design
Interconnect Parameter in Digital VLSI DesignInterconnect Parameter in Digital VLSI Design
Interconnect Parameter in Digital VLSI Design
 
Introduction to Digital VLSI Design
Introduction to Digital VLSI DesignIntroduction to Digital VLSI Design
Introduction to Digital VLSI Design
 
Challenges of Massive MIMO System
Challenges of Massive MIMO SystemChallenges of Massive MIMO System
Challenges of Massive MIMO System
 
E-democracy or Digital Democracy
E-democracy or Digital DemocracyE-democracy or Digital Democracy
E-democracy or Digital Democracy
 
Ethics of Parasitic Computing
Ethics of Parasitic ComputingEthics of Parasitic Computing
Ethics of Parasitic Computing
 
Action Lines of Geneva Plan of Action
Action Lines of Geneva Plan of ActionAction Lines of Geneva Plan of Action
Action Lines of Geneva Plan of Action
 
Geneva Plan of Action
Geneva Plan of ActionGeneva Plan of Action
Geneva Plan of Action
 
Fair Use in the Electronic Age
Fair Use in the Electronic AgeFair Use in the Electronic Age
Fair Use in the Electronic Age
 
Software as a Property
Software as a PropertySoftware as a Property
Software as a Property
 
Orthogonal Polynomial
Orthogonal PolynomialOrthogonal Polynomial
Orthogonal Polynomial
 
Patent Protection
Patent ProtectionPatent Protection
Patent Protection
 
Copyright Vs Patent and Trade Secrecy Law
Copyright Vs Patent and Trade Secrecy LawCopyright Vs Patent and Trade Secrecy Law
Copyright Vs Patent and Trade Secrecy Law
 
Property Right and Software
Property Right and SoftwareProperty Right and Software
Property Right and Software
 
Investigating Data Trials
Investigating Data TrialsInvestigating Data Trials
Investigating Data Trials
 
Gaussian Numerical Integration
Gaussian Numerical IntegrationGaussian Numerical Integration
Gaussian Numerical Integration
 
Censorship and Controversy
Censorship and ControversyCensorship and Controversy
Censorship and Controversy
 
Romberg's Integration
Romberg's IntegrationRomberg's Integration
Romberg's Integration
 
Introduction to Censorship
Introduction to Censorship Introduction to Censorship
Introduction to Censorship
 

Recently uploaded

High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 

Recently uploaded (20)

High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 

Lecture 3 (Supervised learning)

  • 1. Supervised Learning Dr. Varun Kumar Dr. Varun Kumar Lecture 3 1 / 13
  • 2. Outlines 1 Introduction to Supervised Learning 2 Motivation: 3 Scope of Machine Learning: 4 References Dr. Varun Kumar Lecture 3 2 / 13
  • 3. Introduction to Supervised Learning: Introduction: In supervised learning, the aim is to learn a mapping from the input to an output whose correct values are provided by a supervisor. Ex- To find the family car based on classification. Attributes: It should be not expensive, i.e, p1 < price < p2. Its engine capacity should be better, e1 hp < ec < e2 hp It should be spacious. Key Points: Other attributes like, comfort, milage, top speed so on has not been considered in the case. For analytical simplicity, we consider only price and engine capacity. Class learning is finding a description that is shared by all positive examples and none of the negative examples. Dr. Varun Kumar Lecture 3 3 / 13
  • 4. Positive and Negative Example: Positive and Negative Example: When car price and their engine capacity follow the relation, i.e, (p1 < price < p2) & (e1 < ec < e2) called as positive otherwise negative example. Training set for the class of a family car. Figure: Each data point corresponds to one example car. ’+’ denotes a positive example of the class, and ’-’ denotes a negative example. Dr. Varun Kumar Lecture 3 4 / 13
  • 5. Actual Hypothesis H Actual Hypothesis H The class of family car is a rectangle in the price-engine power space. Actual hypothesis H contain all possibilities, where the car comes under the family car at given constraints. Dr. Varun Kumar Lecture 3 5 / 13
  • 6. Mathematical Intuition: Mathematical representation: Let input attribute is expressed as x = x1 x2 x1 → Price & x2 → Engine capacity Similarly r is a vector that reveals the condition of +ve and -ve example. r = 1, if x is a positive example 0, if x is a negative example Each car is represented by such an ordered pair (x, r). Training set: Let X is the training set that gives the information about N different cars. Mathematically, X = {xt , rt }N t=1 t → refers indexes for different examples in the set. Dr. Varun Kumar Lecture 3 6 / 13
  • 7. Learning Hypothesis h: Aim of learning hypothesis h Let C is the class of family cars. Aim of particular hypothesis is as follow i. To reduce the search space. ii. h ∈ H and H ≥ h. The learning algorithm finds the particular hypothesis h such that h ∈ H, to approximate C as closely as possible. Let us say the hypothesis h makes a prediction for an instance x such that h(x) = 1, if h classifies x as a positive example 0, if h classifies x as a negative example Key points : In real life we do not know C(x). We cannot evaluate how well h(x) matches C(x). We have a training set X, which is a small subset of large problem. Dr. Varun Kumar Lecture 3 7 / 13
  • 8. Error of hypothesis h: Error of hypothesis h: The error of hypothesis h given the training set X is E(h|X) = N t=1 1(h(xt ) = rt ) where 1(a = b) is 1 if a = b and is 0 if a = b. Dr. Varun Kumar Lecture 3 8 / 13
  • 9. Generalization: Problem of generalization: Let x1 and x2 are real-valued. There are infinitely many such h that satisfy the condition, i.e, E=0. At the boundary between positive and negative examples, different candidate hypotheses may make different generalization predictions. The problem of generalization refers that how well our hypothesis will correctly classify future examples that are not part of the training set. Most specific hypothesis: The most specific hypothesis S is the tightest rectangle that includes all the positive examples and none of the negative examples. Most general hypothesis The most general hypothesis G is the largest rectangle that includes all the positive examples and none of the negative examples. Dr. Varun Kumar Lecture 3 9 / 13
  • 10. Comparison of different hypothesis: Comparison of different hypothesis: Any h ∈ H between S and G is a valid hypothesis with no error, said to be consistent with the training set. At another training set, S, G, version space, the parameters and thus the learned hypothesis h can be different. Dr. Varun Kumar Lecture 3 10 / 13
  • 11. Margin: Margin: Actually, depending on X and H, there may be several Si and Gj that make up the S-set and the G-set. Margin: The distance between boundary and the instances closest to it. Margin decides the degree of accuracy of learning hypothesis h. Dr. Varun Kumar Lecture 3 11 / 13
  • 12. Probably Approximately Correct (PAC) Learning: PAC learning: In PAC learning, Let a given class of problem is C. Unknown examples have fixed probability distribution, i.e, p(x). We want to find the number of examples N such that with probability at least 1 − δ, the hypothesis h has error at most , for arbitrary δ ≥ 1/2 and > 0. P(C∆h ≤ ) ≥ 1 − δ, where C∆h is the region of difference between C and h. Dr. Varun Kumar Lecture 3 12 / 13
  • 13. References E. Alpaydin, Introduction to machine learning. MIT press, 2020. T. M. Mitchell, The discipline of machine learning. Carnegie Mellon University, School of Computer Science, Machine Learning , 2006, vol. 9. J. Grus, Data science from scratch: first principles with python. O’Reilly Media, 2019. Dr. Varun Kumar Lecture 3 13 / 13