Error using segminopt>segminoptmpl No convergence achieved within maximum number of iterations
Mostra commenti meno recenti
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
Risposte (1)
Walter Roberson
il 14 Mar 2018
0 voti
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 Commenti
Tripoli Settou
il 14 Mar 2018
Walter Roberson
il 14 Mar 2018
Ah, it looks like that should work too.
Tripoli Settou
il 14 Mar 2018
Walter Roberson
il 14 Mar 2018
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.
Tripoli Settou
il 14 Mar 2018
Categorie
Scopri di più su MATLAB in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!