You are on page 1of 11

KERNEL FUNCTIONS IN NON-

LINEAR CLASSIFICATION
Introduction
• Once the data points are non-linear separable
in their original feature space, the linear
classifier may fail to determine where the
decision boundary is.
• mapping the original feature space (x ∈ ℝᵈ)
into the higher dimensional feature space
(ϕ(x) ∈ ℝᵉ , e>d)
Cont…
• classifying data points through feature
mapping.
• Originally, the data points with the feature
vectors x = [x₁, x₂] in the 2-D space have the
concentrically circular distribution.
• by incorporating a certain mapping function
ϕ(x), the feature vectors can be transformed
into 3-D feature space
Cont…

The new data points with 3-D feature vectors ϕ(x) = [x₁, x₂,(x₁²+x₂²)] can now be
using the linear classifier to determine the decision boundary hyperplane.
Kernel Functions:
• SVM algorithms use a set of mathematical functions that are
defined as the kernel.

• The function of kernel is to take data as input and transform it


into the required form.

• Different SVM algorithms use different types of kernel


functions. These functions can be different types.

• For example linear, nonlinear, polynomial, radial basis


function (RBF), and sigmoid.

• The most used type of kernel function is RBF.


Kernel Composition Rules:
• There are several kernel compositions rules
that can be used to construct more complex
kernel functions
Cont..
Radial Basis Kernel
• Radial Basis Kernel is a kernel function that is used in
machine learning to find a non-linear classifier or
regression line.
• Kernel Function is used to transform n-dimensional
input to m-dimensional input, where m is much
higher than n then find the dot product in higher
dimensional efficiently.
• A linear classifier or regression curve in higher
dimensions becomes a Non-linear classifier or
regression curve in lower dimensions.
Cont…

• where x, x’ are vector point in any fixed dimensional space.

• But if we expand the above exponential expression, It will go upto infinite power
of x and x’, as expansion of ex contains infinite terms upto infinite power
of x hence it involves terms upto infinite powers in infinite dimension.

• If we apply any of the algorithms like perceptron Algorithm or linear regression


on this kernel, actually we would be applying our algorithm to new infinite-
dimensional datapoint we have created.

• Hence it will give a hyperplane in infinite dimensions, which will give a very strong
non-linear classifier or regression curve after returning to our original dimensions.
Cont…

• we are applying linear classifier/regression it will


give a non-linear classifier or regression line, that
will be a polynomial of infinite power.

• And being a polynomial of infinite power, Radial


Basis kernel is a very powerful kernel, which can
give a curve fitting any complex dataset.
Example

You might also like