<< Chapter < Page Chapter >> Page >
ε ( h ) = P ( x , y ) D ( h ( x ) y ) .

I.e. this is the probability that, if we now draw a new example ( x , y ) from the distribution D , h will misclassify it.

Note that we have assumed that the training data was drawn from the same distribution D with which we're going to evaluate our hypotheses (in the definition of generalization error). This issometimes also referred to as one of the PAC assumptions. PAC stands for “probably approximately correct,” which is a framework and set of assumptionsunder which numerous results on learning theory were proved. Of these, the assumption of training and testing on the same distribution, and the assumptionof the independently drawn training examples, were the most important.

Consider the setting of linear classification, and let h θ ( x ) = 1 { θ T x 0 } . What's a reasonable way of fitting the parameters θ ? One approach is to try to minimize the training error, and pick

θ ^ = arg min θ ε ^ ( h θ ) .

We call this process empirical risk minimization (ERM), and the resulting hypothesis output by the learning algorithm is h ^ = h θ ^ . We think of ERM as the most “basic” learning algorithm, and it will be thisalgorithm that we focus on in these notes. (Algorithms such as logistic regression can also be viewed as approximations to empirical risk minimization.)

In our study of learning theory, it will be useful to abstract away from the specific parameterization of hypotheses and from issues suchas whether we're using a linear classifier. We define the hypothesis class H used by a learning algorithm to be the set of all classifiers considered by it. For linearclassification, H = { h θ : h θ ( x ) = 1 { θ T x 0 } , θ R n + 1 } is thus the set of all classifiers over X (the domain of the inputs) where the decision boundary is linear.More broadly, if we were studying, say, neural networks, then we could let H be the set of all classifiers representable by some neural network architecture.

Empirical risk minimization can now be thought of as a minimization over the class of functions H , in which the learning algorithm picks the hypothesis:

h ^ = arg min h H ε ^ ( h )

The case of finite H

Let's start by considering a learning problem in which we have a finite hypothesis class H = { h 1 , ... , h k } consisting of k hypotheses. Thus, H is just a set of k functions mapping from X to { 0 , 1 } , and empirical risk minimization selects h ^ to be whichever of these k functions has the smallest training error.

We would like to give guarantees on the generalization error of h ^ . Our strategy for doing so will be in two parts: First, we will show that ε ^ ( h ) is a reliable estimate of ε ( h ) for all h . Second, we will show that this implies an upper-bound on the generalization error of h ^ .

Take any one, fixed, h i H . Consider a Bernoulli random variable Z whose distribution is defined as follows. We're going to sample ( x , y ) D . Then, we set Z = 1 { h i ( x ) y } . I.e., we're going to draw one example, and let Z indicate whether h i misclassifies it. Similarly, we also define Z j = 1 { h i ( x ( j ) ) y ( j ) } . Since our training set was drawn iid from D , Z and the Z j 's have the same distribution.

We see that the misclassification probability on a randomly drawn example—that is, ε ( h ) —is exactly the expected value of Z (and Z j ). Moreover, the training error can be written

Questions & Answers

how does Neisseria cause meningitis
Nyibol Reply
what is microbiologist
Muhammad Reply
what is errata
Muhammad
is the branch of biology that deals with the study of microorganisms.
Ntefuni Reply
What is microbiology
Mercy Reply
studies of microbes
Louisiaste
when we takee the specimen which lumbar,spin,
Ziyad Reply
How bacteria create energy to survive?
Muhamad Reply
Bacteria doesn't produce energy they are dependent upon their substrate in case of lack of nutrients they are able to make spores which helps them to sustain in harsh environments
_Adnan
But not all bacteria make spores, l mean Eukaryotic cells have Mitochondria which acts as powerhouse for them, since bacteria don't have it, what is the substitution for it?
Muhamad
they make spores
Louisiaste
what is sporadic nd endemic, epidemic
Aminu Reply
the significance of food webs for disease transmission
Abreham
food webs brings about an infection as an individual depends on number of diseased foods or carriers dully.
Mark
explain assimilatory nitrate reduction
Esinniobiwa Reply
Assimilatory nitrate reduction is a process that occurs in some microorganisms, such as bacteria and archaea, in which nitrate (NO3-) is reduced to nitrite (NO2-), and then further reduced to ammonia (NH3).
Elkana
This process is called assimilatory nitrate reduction because the nitrogen that is produced is incorporated in the cells of microorganisms where it can be used in the synthesis of amino acids and other nitrogen products
Elkana
Examples of thermophilic organisms
Shu Reply
Give Examples of thermophilic organisms
Shu
advantages of normal Flora to the host
Micheal Reply
Prevent foreign microbes to the host
Abubakar
they provide healthier benefits to their hosts
ayesha
They are friends to host only when Host immune system is strong and become enemies when the host immune system is weakened . very bad relationship!
Mark
what is cell
faisal Reply
cell is the smallest unit of life
Fauziya
cell is the smallest unit of life
Akanni
ok
Innocent
cell is the structural and functional unit of life
Hasan
is the fundamental units of Life
Musa
what are emergency diseases
Micheal Reply
There are nothing like emergency disease but there are some common medical emergency which can occur simultaneously like Bleeding,heart attack,Breathing difficulties,severe pain heart stock.Hope you will get my point .Have a nice day ❣️
_Adnan
define infection ,prevention and control
Innocent
I think infection prevention and control is the avoidance of all things we do that gives out break of infections and promotion of health practices that promote life
Lubega
Heyy Lubega hussein where are u from?
_Adnan
en français
Adama
which site have a normal flora
ESTHER Reply
Many sites of the body have it Skin Nasal cavity Oral cavity Gastro intestinal tract
Safaa
skin
Asiina
skin,Oral,Nasal,GIt
Sadik
How can Commensal can Bacteria change into pathogen?
Sadik
How can Commensal Bacteria change into pathogen?
Sadik
all
Tesfaye
by fussion
Asiina
what are the advantages of normal Flora to the host
Micheal
what are the ways of control and prevention of nosocomial infection in the hospital
Micheal
what is inflammation
Shelly Reply
part of a tissue or an organ being wounded or bruised.
Wilfred
what term is used to name and classify microorganisms?
Micheal Reply
Binomial nomenclature
adeolu
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Machine learning. OpenStax CNX. Oct 14, 2013 Download for free at http://cnx.org/content/col11500/1.4
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Machine learning' conversation and receive update notifications?

Ask