Training complexity of Linear SVM
Asked Answered
T

2

18

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

Thank you

Tamarau answered 16/5, 2013 at 10:50 Comment(0)
C
17

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.

Carbonous answered 17/5, 2013 at 12:20 Comment(2)
Link 2 is dead, and for link 1 the document seems to have been removedGilli
And what is the complexity of liblinear svm?Alsup
B
1

This is going to be heavily dependent on svm type and kernel. There is a rather technical discussion http://www.csie.ntu.edu.tw/~cjlin/papers/libsvm.pdf. For a quick answer, http://www.csie.ntu.edu.tw/~cjlin/papers/libsvm.pdf, says expect it to be n^2.

Barefaced answered 16/5, 2013 at 15:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.