Error using segminopt>segminoptmpl No convergence achieved within maximum number of iterations

조회 수: 3 (최근 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

답변 (1개)

Walter Roberson
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
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by