








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









Greg Hamerly
Spring 2008
Some content from Andrew Moore http://www.cs.cmu.edu/∼awm/tutorials.
Outline
1 Kernelizing other algorithms
2 Other issues
Kernelizing other algorithms
Any algorithm that can be expressed entirely with dot products can be ‘kernelized.’
Just replace all dot products with a chosen kernel.
Examples: PCA, k-nearest neighbor, k-means – any distance-based learning algorithm!
Kernelizing other algorithms
A kernel is a function that represents an inner product in some mapped space.
Mercer’s condition: K (a, b) is a kernel representing a basis expansion K (a, b) =
i
Φ(a)i Φ(b)i
iff for any g (a) such that
g (a)^2 da is finite, then ∫ K (a, b)g (a)g (b)da db ≥ 0
In other words, K is positive semi-definite.
Other issues
Interestingly, the VC dimension depends on the margin, but not necessarily on the complexity of the kernel.
In fact, some kernels have infinite VC dimension themselves. → Gaussian (aka RBF) kernels represent an infinite feature space Φ(x), and also have infinite VC dimension!
Other issues
Another bound on SVM error bounds: the number of support vectors.
E [P(error )] ≤ E [number support vectors] n where the expectation on the right is over all samples of size n.
So the number of support vectors has a relationship with accuracy!
Other issues
Suppose K 1 and K 2 are both kernels over X × X , X ⊆ Rd f is a real-valued function over X Φ is a feature map from X to Rm K 3 is a kernel over Rm^ × Rm B is a positive semi-definite d × d matrix Then the following are all kernels: K (a, b) = K 1 (a, b) + K 2 (a, b) K (a, b) = αK 1 (a, b) K (a, b) = K 1 (a, b)K 2 (a, b) K (a, b) = f (a)f (b) K (a, b) = K 3 (Φ(a), Φ(b)) K (a, b) = aT^ Bb
Other issues
SVMs are excellent for 2 classes, but what about more than that?
Standard approach: choose a method to decompose one m-class into multiple 2-class problems 1-versus-all (requires m SVMs) pairwise classifiers (requires m(m − 1)/2 SVMs) error-correcting output codes (multiple p-versus-q SVMs)
Training is easy – break the initial multi-class dataset into multiple binary-class datasets, and train a binary SVM for each.
Combining answers of multiple classifiers for making predictions can be tricky, but voting or looking for the most confident predictions works.
Other issues
Support vectors machines are for classification; but regression is also possible with similar ideas.
A key difference from least squares is that SVR cares only about errors that are further than ε from the regression line. this is called ε-insensitive loss
Such regressors can be sparse, just like SVMs, and can also use kernel functions for non-linear regression.
Other issues
Don’t write the software – use someone else’s: SVMlight (Joachims) Matlab toolkits www.support-vector-machines.org/SVM soft.html