From: kzin lin on 1 Mar 2010 02:30 HI all, it is very useful question and answer, i got it. i got the same error and now i try with this command. thz to all ;P "Manos " <ezoulias(a)in.gr> wrote in message <glaiuo$j39$1(a)fred.mathworks.com>... > Hi everyone, > > I am an old user of Matlab and I try to use SVM (support vector machines) for some classification. > > I use the following code > > for i=1:1:4 > > sensitivitytotal1150 = 0; > specificitytotal1150 = 0; > > %This is a custom function that I ahve been using for a long time and works for %other SVM methods > [HeadLines,ind0,ind1,ind2,ind3,ind4,ind5,ResultsNM,ResultsM,ResultsNMold,ResultsMEid1,ResultsMEid0,ResultsNMEid1,ResultsNMEid0,YResultsMEid1,YResultsMEid0,YResultsNMEid1,YResultsNMEid0,YResultsNM,YResultsM,YResultsNMold,NMT1,NMT0,NMTY1,NMTY0,MT1,MT0,TotalResult,YResultsTotal,TotalTestResult,YResultsTestTotal,TotalTestResulta,TotalResulta] = split_to_test_training_sets_for_suspicious_spec(textdata,data,0.2,1); > > SVMstruct1150 = svmtrain(TotalResult,YResultsTotal,'Kernel_Function','mlp','Method','QP'); > classes1150 = svmclassify(SVMstruct1150,TotalTestResult); > cp1150 = classperf(YResultsTotal); > cp1150 = classperf(classes1150,YResultsTestTotal); > > sensitivitytotal1150 = sensitivitytotal1150 + cp1150.sensitivity; > sensitivityaverage1150 = sensitivitytotal1150 / i; > > specificitytotal1150 = specificitytotal1150 + cp1150.specificity; > specificityaverage1150 = specificitytotal1150 / i; > > sensitivityall1150(i,:) = cp1150.sensitivity; > specificityall1150(i,:) = cp1150.specificity; > > sensitivityall1150(i+1,:) = sensitivityaverage1150; > specificityall1150(i+1,:) = specificityaverage1150; > > %sensitivityall1150 > sensitivityall1150 > > %specificityall1150 > specificityall1150 > end > > End I receive the following error > ??? 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. > > Have you got any idea what is the meaning of it? > Hoa can I increase options.MaxIter.?? > How can I set x0 = x before calling quadprog. > > It will be very helpfull for me if you can give me a solution. > > Than you in advance, > Best regards, > Emmanouil Zoulias
|
Pages: 1 Prev: Remove all spaces in string Next: create exe from gui - urgent |