<< Chapter < Page Chapter >> Page >
w i L ( w * , α * , β * ) = 0 , i = 1 , ... , n β i L ( w * , α * , β * ) = 0 , i = 1 , ... , l α i * g i ( w * ) = 0 , i = 1 , ... , k g i ( w * ) 0 , i = 1 , ... , k α * 0 , i = 1 , ... , k

Moreover, if some w * , α * , β * satisfy the KKT conditions, then it is also a solution to the primal and dual problems.

We draw attention to the third equation in  [link] , which is called the KKT dual complementarity condition. Specifically, it implies that if α i * > 0 , then g i ( w * ) = 0 . (I.e., the “ g i ( w ) 0 ” constraint is active , meaning it holds with equality rather than with inequality.)Later on, this will be key for showing that the SVM has only a small number of “support vectors”; the KKT dual complementarity condition will also give us our convergence test when we talkabout the SMO algorithm.

Optimal margin classifiers

Previously, we posed the following (primal) optimization problem for finding the optimal margin classifier:

min γ , w , b 1 2 | | w | | 2 s.t. y ( i ) ( w T x ( i ) + b ) 1 , i = 1 , ... , m

We can write the constraints as

g i ( w ) = - y ( i ) ( w T x ( i ) + b ) + 1 0 .

We have one such constraint for each training example. Note that from the KKT dualcomplementarity condition, we will have α i > 0 only for the training examples that have functional margin exactly equal to one (i.e., the ones correspondingto constraints that hold with equality, g i ( w ) = 0 ). Consider the figure below, in which a maximum margin separating hyperplane is shown by the solid line.

the same data set with different parallel lines drawn on it for better fit

The points with the smallest margins are exactly the ones closest to the decision boundary; here, these are the three points (one negative and two positive examples)that lie on the dashed lines parallel to the decision boundary. Thus, only three of the α i 's—namely, the ones corresponding to these three training examples—will be non-zero at the optimal solution to our optimization problem. These three pointsare called the support vectors in this problem. The fact that the number of support vectors can be much smaller than the size the training set will be useful later.

Let's move on. Looking ahead, as we develop the dual form of the problem, one key idea to watch out for is that we'll try to write our algorithm in terms of only the inner product x ( i ) , x ( j ) (think of this as ( x ( i ) ) T x ( j ) ) between points in the input feature space. The fact that we can express our algorithm interms of these inner products will be key when we apply the kernel trick.

When we construct the Lagrangian for our optimization problem we have:

L ( w , b , α ) = 1 2 | | w | | 2 - i = 1 m α i y ( i ) ( w T x ( i ) + b ) - 1 .

Note that there're only “ α i ” but no “ β i ” Lagrange multipliers, since the problem has only inequality constraints.

Let's find the dual form of the problem. To do so, we need to first minimize L ( w , b , α ) with respect to w and b (for fixed α ), to get θ D , which we'll do by setting the derivatives of L with respect to w and b to zero. We have:

w L ( w , b , α ) = w - i = 1 m α i y ( i ) x ( i ) = 0

This implies that

w = i = 1 m α i y ( i ) x ( i ) .

As for the derivative with respect to b , we obtain

b L ( w , b , α ) = i = 1 m α i y ( i ) = 0 .

If we take the definition of w in Equation  [link] and plug that back into the Lagrangian (Equation  [link] ), and simplify, we get

L ( w , b , α ) = i = 1 m α i - 1 2 i , j = 1 m y ( i ) y ( j ) α i α j ( x ( i ) ) T x ( j ) - b i = 1 m α i y ( i ) .

Questions & Answers

what does preconceived mean
sammie Reply
physiological Psychology
Nwosu Reply
How can I develope my cognitive domain
Amanyire Reply
why is communication effective
Dakolo Reply
Communication is effective because it allows individuals to share ideas, thoughts, and information with others.
effective communication can lead to improved outcomes in various settings, including personal relationships, business environments, and educational settings. By communicating effectively, individuals can negotiate effectively, solve problems collaboratively, and work towards common goals.
it starts up serve and return practice/assessments.it helps find voice talking therapy also assessments through relaxed conversation.
miss
Every time someone flushes a toilet in the apartment building, the person begins to jumb back automatically after hearing the flush, before the water temperature changes. Identify the types of learning, if it is classical conditioning identify the NS, UCS, CS and CR. If it is operant conditioning, identify the type of consequence positive reinforcement, negative reinforcement or punishment
Wekolamo Reply
please i need answer
Wekolamo
because it helps many people around the world to understand how to interact with other people and understand them well, for example at work (job).
Manix Reply
Agreed 👍 There are many parts of our brains and behaviors, we really need to get to know. Blessings for everyone and happy Sunday!
ARC
A child is a member of community not society elucidate ?
JESSY Reply
Isn't practices worldwide, be it psychology, be it science. isn't much just a false belief of control over something the mind cannot truly comprehend?
Simon Reply
compare and contrast skinner's perspective on personality development on freud
namakula Reply
Skinner skipped the whole unconscious phenomenon and rather emphasized on classical conditioning
war
explain how nature and nurture affect the development and later the productivity of an individual.
Amesalu Reply
nature is an hereditary factor while nurture is an environmental factor which constitute an individual personality. so if an individual's parent has a deviant behavior and was also brought up in an deviant environment, observation of the behavior and the inborn trait we make the individual deviant.
Samuel
I am taking this course because I am hoping that I could somehow learn more about my chosen field of interest and due to the fact that being a PsyD really ignites my passion as an individual the more I hope to learn about developing and literally explore the complexity of my critical thinking skills
Zyryn Reply
good👍
Jonathan
and having a good philosophy of the world is like a sandwich and a peanut butter 👍
Jonathan
generally amnesi how long yrs memory loss
Kelu Reply
interpersonal relationships
Abdulfatai Reply
What would be the best educational aid(s) for gifted kids/savants?
Heidi Reply
treat them normal, if they want help then give them. that will make everyone happy
Saurabh
What are the treatment for autism?
Magret Reply
hello. autism is a umbrella term. autistic kids have different disorder overlapping. for example. a kid may show symptoms of ADHD and also learning disabilities. before treatment please make sure the kid doesn't have physical disabilities like hearing..vision..speech problem. sometimes these
Jharna
continue.. sometimes due to these physical problems..the diagnosis may be misdiagnosed. treatment for autism. well it depends on the severity. since autistic kids have problems in communicating and adopting to the environment.. it's best to expose the child in situations where the child
Jharna
child interact with other kids under doc supervision. play therapy. speech therapy. Engaging in different activities that activate most parts of the brain.. like drawing..painting. matching color board game. string and beads game. the more you interact with the child the more effective
Jharna
results you'll get.. please consult a therapist to know what suits best on your child. and last as a parent. I know sometimes it's overwhelming to guide a special kid. but trust the process and be strong and patient as a parent.
Jharna
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