Training complexity of Linear SVM

user1923631 picture user1923631 · May 16, 2013 · Viewed 14.1k times · Source

Which is the actual computational complexity of the learning phase of SVM (let's say, that implemented in LibSVM)?

Thank you

Answer

Marc Claesen picture Marc Claesen · May 17, 2013

Training complexity of nonlinear SVM is generally between O(n^2) and O(n^3) with n the amount of training instances. The following papers are good references:

PS: If you want to use linear kernel, do not use LIBSVM. LIBSVM is a general purpose (nonlinear) SVM solver. It is not an ideal implementation for linear SVM. Instead, you should consider things like LIBLINEAR (by the same authors as LIBSVM), Pegasos or SVM^perf. These have much better training complexity for linear SVM. Training speed can be orders of magnitude better than using LIBSVM.