Docsity

Nearest Neighbor Classifier with Kernel Methods, Slides of Engineering Dynamics

Partial preview of the text

Download Nearest Neighbor Classifier with Kernel Methods and more Slides Engineering Dynamics in PDF only on Docsity!

  • We have discussed the support vector machines bothfor classification and regression. PR NPTEL course – p.1/
  • We have discussed the support vector machines bothfor classification and regression. - We have also seen some generalizations of the basicSVM idea. PR NPTEL course – p.2/
  • We have discussed the support vector machines bothfor classification and regression. - We have also seen some generalizations of the basicSVM idea. - In SVM method, there are two important ingradients. - One is the Kernel function. PR NPTEL course – p.4/
  • We have discussed the support vector machines bothfor classification and regression. - We have also seen some generalizations of the basicSVM idea. - In SVM method, there are two important ingradients. - One is the Kernel function. - Second is the ‘support vector’ expansion – the finalmodel is expressed as a (‘sparse’) linear combinationof some of the data vectors. PR NPTEL course – p.5/
  • Kernel functions allow us to learn nonlinear modelsusing essentially linear techniques. - Kernels are a good way to capture ‘similarity’ and areuseful in general. PR NPTEL course – p.7/
  • Kernel functions allow us to learn nonlinear modelsusing essentially linear techniques. - Kernels are a good way to capture ‘similarity’ and areuseful in general. - The support vector expansion is also a generalproperty of Kernel based methods. PR NPTEL course – p.8/
  • Often, in pattern recognition, we use distancebetween pattern vectors as a means to assesssimilarity (e.g. nearest neighbour classifier). PR NPTEL course – p.10/
  • Often, in pattern recognition, we use distancebetween pattern vectors as a means to assesssimilarity (e.g. nearest neighbour classifier). - Kernels allow us to generalize such notions ofdistance or similarity between patterns. PR NPTEL course – p.11/
  • Consider a 2-class classification problem with trainingdata

X

i , y i

, i

, n

, X

i

m , y i

PR NPTEL course – p.13/

  • Consider a 2-class classification problem with trainingdata

X

i , y i

, i

, n

, X

i

m , y i

  • Suppose we implement a nearest neighbour classifier,by computing distance of a new pattern to a set ofprototypes. PR NPTEL course – p.14/
  • Suppose we use two prototypes given by

C

n

i :^ y i =+ φ

X

i

and

C

−

n −

i :^ y i = − 1 φ

X

i

where n

is the number of examples in class

and n − is that in class

. PR NPTEL course – p.16/

  • Suppose we use two prototypes given by

C

n

i :^ y i =+ φ

X

i

and

C

−

n −

i :^ y i = − 1 φ

X

i

where n

is the number of examples in class

and n − is that in class

.

  • The prototypes are ‘centers’ of the two classes. PR NPTEL course – p.17/
  • We can implement this using kernels. We have

φ

X

C

2

φ

X

T φ

X

φ

X

T

C

C

T +

C

PR NPTEL course – p.19/

  • We can implement this using kernels. We have

φ

X

C

2

φ

X

T φ

X

φ

X

T

C

C

T +

C

  • Thus we would put

X

in class

if φ

X

T

C

φ

X

T

C

−

C

T −

C

−

C

T +

C

PR NPTEL course – p.20/