3
votes

When I tried to train a SVM(trainsvm function) with RBF kernel,

The libSVM library outputs "Line search fails in two-class probability estimates" during training.

After training, the training accuracy of the model is just 20%.

I think I might miss something and it is related to the message.

For more information about my project,

I'm dealing with PASCAL VOC action classification problem.

I'm trying to follow this method. http://www.ifp.illinois.edu/~jyang29/papers/CVPR09-ScSPM.pdf

There are 1300 training images and 11 classes.

After making codebooks and sparse coding,

The dimension of feature vector is 2688.

The number of training example is 1370.

2
I think the message indicating lack of convergence of the probability estimates is just a consequence of the low accuracy. Fix the accuracy and probably the other problem will go away. How did you select the paramters for the SVM?Bull
i just used default parameter RBF kernel gamma is 1/# of featureswinnerrrr
actually, the author of the paper provides source code. and he used other svm library. but when i adopted the svm library, the result was also as poor as original one. i think the problem might be feature representation because i'm dealing with different datasets from the author's one.winnerrrr

2 Answers

3
votes

You need to do a grid search, either using cross validation, or using a separate validation data set to get good values for C and gamma. Libsvm has a script called grid.py that is useful for this. I noticed you tagged this with matlab, using grid.py needs command line tools and a python installation (IMO this generally works out better than with matlab, especially if you have a some big machines to run many jobs in parallel).

I recommend that you read the libsvm guide if you haven't already done so: http://www.csie.ntu.edu.tw/~cjlin/papers/guide/guide.pdf‎.

I also suggest you initially use the same dataset as used for the paper as occasionally published algorithms only work well on the dataset chosen for the paper.

Lastly, you could contact the authors of the paper.

1
votes

I asked about this warning the author of LIBSVM, and he replied that this warning can be ignored.