I wrote following code and test it on small data:
classif = OneVsRestClassifier(svm.SVC(kernel='rbf'))
classif.fit(X, y)
Where X, y
(X - 30000x784 matrix, y - 30000x1) are numpy arrays. On small data algorithm works well and give me right results.
But I run my program about 10 hours ago... And it is still in process.
I want to know how long it will take, or it stuck in some way? (Laptop specs 4 GB Memory, Core i5-480M)
SVM training can be arbitrary long, this depends on dozens of parameters:
C
parameter - greater the missclassification penalty, slower the processin general, basic SMO algorithm is O(n^3)
, so in case of 30 000
datapoints it has to run number of operations proportional to the2 700 000 000 000
which is realy huge number. What are your options?
C
parameter