Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Error in SVMclassify
Replies: 1   Last Post: Oct 13, 2012 5:50 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Muhammad Imran

Posts: 63
Registered: 5/31/12
Error in SVMclassify
Posted: Oct 13, 2012 5:31 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi all
i have the fallowing code

for j=1:10
PosNegF=vertcat(Pos ,Neg );
svmstruct=svmtrain(PosNegF,group);

clear Fset;
clear Fset1;

for l=1:999

Fset(l,:)= [l,svmclassify(svmstruct, DB1(l,:))];


end
end

it is giving error when j=8, run ok till j=7
fallowing is the error thronging by this code

??? Attempted to access svmStruct.ScaleData.scaleFactor(10); index out of bounds
because numel(svmStruct.ScaleData.scaleFactor)=9.

Error in ==> svmclassify at 109
sample(:,c) = svmStruct.ScaleData.scaleFactor(c) * ...

Error in ==> RF_SVM at 144
Fset(l,:)= [l,svmclassify(svmstruct, DB1(l,:))];

Please help me



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.