Total members 11894 |It is currently Mon Nov 25, 2024 9:55 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka






Am writing this topic to state a solution to a common MATLAB error that may appears to you if you are using it for your research and study. The problem happens when using SVMtrain for classification , here is the error log :
Code:
??? Error using ==> svmtrain at 470
Unable to solve the optimization problem:
Maximum number of iterations exceeded; increase options.MaxIter.
To continue solving the problem with the current solution as the
starting point, set x0 = x before calling quadprog.



The solution to this problem is to increase the number of iteration of support vector machine train function .

Code:
   options = optimset('maxiter', 200); %options settings for SVMTRAIN
   svmStructs(j)=svmtrain(currentDescriptors,currentLabels,'quadprog_opts' , options);




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : Matlab SVM training problem
 run .exe program in matlab     -  
 Matlab basics examples     -  
 help me How do I load image from my pc to matlab     -  
 MATLAB clear memory     -  
 read file in matlab     -  
 simple speech manipulation under MATLAB     -  
 naive Bayes classifier in MATLAB     -  
 error closing file matlab save     -  
 particle swarm optimization matlab code     -  
 Support Vector Machine coding on Matlab...     -  










Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com