Error using segminopt>segminoptmpl No convergence achieved within maximum number of iterations
2 次查看(过去 30 天)
显示 更早的评论
Hi, I have problem to using SVM Classifier when i extracted the features from train data (13393 of images) and from test data (5740 of images) i use these code:
model_svm = svmtrain(Feature_Train,trainingLabels,'ShowPlot',true);
predictedLabels = svmclassify(model_svm, Feature_Test,'showplot',true);
Where the Feature_Train is a matrix of 13393x4096 and Feature_Test is a matrix of 5740x4096 But this error show:
Error using segminopt>segminoptmpl (line 198)
No convergence achieved within maximum number of iterations
Error in segminopt (line 81)
[alphas offset] = segminoptImpl(data, targetLabels,....
Error in svmtrain (line 503)
[alpha bias] = segminopt(training, groupIndex,....
What can I do to fix the error? Please advise me
0 个评论
回答(1 个)
Walter Roberson
2018-3-14
Unfortunately there is no option with svmtrain() to alter the number of iterations it will try.
You could experiment with using the other "method" choices, or the ktt related options.
You could also experiment with using the newer https://www.mathworks.com/help/stats/fitcsvm.html that is replacing svmtrain()
5 个评论
Walter Roberson
2018-3-14
I do not think I have ever seen any formula to estimate the number of required iterations. So just increase it and if the problem keeps happening, increase it again.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!