<< Chapter < Page Chapter >> Page >


To make our discussion of SVMs easier, we'll first need to introduce a new notation for talking about classification.We will be considering a linear classifier for a binary classification problem with labels y and features x . From now, we'll use y { - 1 , 1 } (instead of { 0 , 1 } ) to denote the class labels. Also, rather than parameterizing our linearclassifier with the vector θ , we will use parameters w , b , and write our classifier as

h w , b ( x ) = g ( w T x + b ) .

Here, g ( z ) = 1 if z 0 , and g ( z ) = - 1 otherwise. This “ w , b ” notation allows us to explicitly treat the intercept term b separately from the other parameters. (We also drop the convention we had previously of letting x 0 = 1 be an extra coordinate in the input feature vector.) Thus, b takes the role of what was previously θ 0 , and w takes the role of [ θ 1 ... θ n ] T .

Note also that, from our definition of g above, our classifier will directly predict either 1 or - 1 (cf. the perceptron algorithm), without first going through the intermediate step of estimating the probability of y being 1 (which was what logistic regression did).

Functional and geometric margins

Let's formalize the notions of the functional and geometric margins. Given a training example ( x ( i ) , y ( i ) ) , we define the functional margin of ( w , b ) with respect to the training example

γ ^ ( i ) = y ( i ) ( w T x + b ) .

Note that if y ( i ) = 1 , then for the functional margin to be large (i.e., for our prediction to be confident and correct), we need w T x + b to be a large positive number. Conversely, if y ( i ) = - 1 , then for the functional margin to be large, we need w T x + b to be a large negative number. Moreover, if y ( i ) ( w T x + b ) > 0 , then our prediction on this example is correct. (Check this yourself.)Hence, a large functional margin represents a confident and a correct prediction.

For a linear classifier with the choice of g given above (taking values in { - 1 , 1 } ), there's one property of the functional margin that makes it not a very good measure of confidence,however. Given our choice of g , we note that if we replace w with 2 w and b with 2 b , then since g ( w T x + b ) = g ( 2 w T x + 2 b ) , this would not change h w , b ( x ) at all. I.e., g , and hence also h w , b ( x ) , depends only on the sign, but not on the magnitude, of w T x + b . However, replacing ( w , b ) with ( 2 w , 2 b ) also results in multiplying our functional margin by a factor of 2. Thus, it seems that by exploiting our freedom to scale w and b , we can make the functional margin arbitrarily large without really changing anything meaningful. Intuitively, it might therefore make senseto impose some sort of normalization condition such as that | | w | | 2 = 1 ; i.e., we might replace ( w , b ) with ( w / | | w | | 2 , b / | | w | | 2 ) , and instead consider the functional margin of ( w / | | w | | 2 , b / | | w | | 2 ) . We'll come back to this later.

Given a training set S = { ( x ( i ) , y ( i ) ) ; i = 1 , ... , m } , we also define the function margin of ( w , b ) with respect to S to be the smallest of the functional margins of the individual training examples. Denotedby γ ^ , this can therefore be written:

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

Next, let's talk about geometric margins . Consider the picture below:

measuring the distance from the line to each type of data point

The decision boundary corresponding to ( w , b ) is shown, along with the vector w . Note that w is orthogonal (at 90 ) to the separating hyperplane. (You should convince yourself that this must be the case.) Consider the point at A, which represents the input x ( i ) of some training example with label y ( i ) = 1 . Its distance to the decision boundary, γ ( i ) , is given by the line segment AB.

Questions & Answers

Is there any normative that regulates the use of silver nanoparticles?
Damian Reply
what king of growth are you checking .?
What fields keep nano created devices from performing or assimulating ? Magnetic fields ? Are do they assimilate ?
Stoney Reply
why we need to study biomolecules, molecular biology in nanotechnology?
Adin Reply
yes I'm doing my masters in nanotechnology, we are being studying all these domains as well..
what school?
biomolecules are e building blocks of every organics and inorganic materials.
anyone know any internet site where one can find nanotechnology papers?
Damian Reply
sciencedirect big data base
Introduction about quantum dots in nanotechnology
Praveena Reply
what does nano mean?
Anassong Reply
nano basically means 10^(-9). nanometer is a unit to measure length.
do you think it's worthwhile in the long term to study the effects and possibilities of nanotechnology on viral treatment?
Damian Reply
absolutely yes
how to know photocatalytic properties of tio2 nanoparticles...what to do now
Akash Reply
it is a goid question and i want to know the answer as well
characteristics of micro business
for teaching engĺish at school how nano technology help us
Do somebody tell me a best nano engineering book for beginners?
s. Reply
there is no specific books for beginners but there is book called principle of nanotechnology
what is fullerene does it is used to make bukky balls
Devang Reply
are you nano engineer ?
fullerene is a bucky ball aka Carbon 60 molecule. It was name by the architect Fuller. He design the geodesic dome. it resembles a soccer ball.
what is the actual application of fullerenes nowadays?
That is a great question Damian. best way to answer that question is to Google it. there are hundreds of applications for buck minister fullerenes, from medical to aerospace. you can also find plenty of research papers that will give you great detail on the potential applications of fullerenes.
what is the Synthesis, properties,and applications of carbon nano chemistry
Abhijith Reply
Mostly, they use nano carbon for electronics and for materials to be strengthened.
is Bucky paper clear?
carbon nanotubes has various application in fuel cells membrane, current research on cancer drug,and in electronics MEMS and NEMS etc
so some one know about replacing silicon atom with phosphorous in semiconductors device?
s. Reply
Yeah, it is a pain to say the least. You basically have to heat the substarte up to around 1000 degrees celcius then pass phosphene gas over top of it, which is explosive and toxic by the way, under very low pressure.
Do you know which machine is used to that process?
how to fabricate graphene ink ?
for screen printed electrodes ?
What is lattice structure?
s. Reply
of graphene you mean?
or in general
in general
Graphene has a hexagonal structure
On having this app for quite a bit time, Haven't realised there's a chat room in it.
what is biological synthesis of nanoparticles
Sanket Reply
how did you get the value of 2000N.What calculations are needed to arrive at it
Smarajit Reply
Privacy Information Security Software Version 1.1a
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get the best Algebra and trigonometry course in your pocket!

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?