Lably
Skip to content

Kernel method

Class of algorithms for pattern analysis

  • 4 min read
  • 4 chapters

Related on Lably

Through Machine learning, Pattern recognition and Ranking

Kernel methods owe their name to the use of kernel functions, which enable them to operate in a high-dimensional, implicit feature space without ever computing the coordinates of the data in that space, but rather by simply computing the inner products between the images of all pairs of data in the feature space. This operation is often computationally cheaper than the explicit computation of the coordinates. This approach is called the "kernel trick". Kernel functions have been introduced for sequence data, graphs, text, images, as well as vectors.

Algorithms capable of operating with kernels include the kernel perceptron, support-vector machines (SVM), Gaussian processes, principal components analysis (PCA), canonical correlation analysis, ridge regression, spectral clustering, linear adaptive filters and many others.

Most kernel algorithms are based on convex optimization or eigenproblems and are statistically well-founded. Typically, their statistical properties are analyzed using statistical learning theory (for example, using Rademacher complexity).

Motivation and informal explanation

Kernel methods can be thought of as instance-based learners: rather than learning some fixed set of parameters corresponding to the features of their inputs, they instead "remember" the i-th training example (xi,yi) and learn for it a corresponding weight wi. Prediction for unlabeled inputs, i.e., those not in the training set, are treated by the application of a similarity function k, called a kernel, between the unlabeled input x′ and each of the training inputs xi. For instance, a kernelized binary classifier typically computes a weighted sum of similarities y^=sgn⁡∑i=1nwiyik(xi,x′), where

  • y^∈{−1,+1} is the kernelized binary classifier's predicted label for the unlabeled input x′ whose hidden true label y is of interest;
  • k:X×X→R is the kernel function that measures similarity between any pair of inputs x,x′∈X;
  • the sum ranges over the n labeled examples {(xi,yi)}i=1n in the classifier's training set, with yi∈{−1,+1};
  • the wi∈R are the weights for the training examples, as determined by the learning algorithm;
  • the sign function sgn determines whether the predicted classification y^ comes out positive or negative.

Kernel classifiers were described as early as the 1960s, with the invention of the kernel perceptron. They rose to great prominence with the popularity of the support-vector machine (SVM) in the 1990s, when the SVM was found to be competitive with neural networks on tasks such as handwriting recognition.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Robotics