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: KNN classify
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
amira ali

Posts: 160
Registered: 5/15/11
KNN classify
Posted: Apr 9, 2013 7:03 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


need some help me please in this error
traindata (180*1500) and testdata(60*1500)

predTestLabel = knnclassify(testdata,traindata,labels);

??? Error using ==> pdist2
Too many input arguments.

Error in ==> ExhaustiveSearcher.knnsearch at 213
[~,idx] = pdist2(obj.X,Y, distMetric, arg{:}, 'smallest',numNN);

Error in ==> knnsearch at 159
idx = knnsearch(O,Y,'k',numNN, 'includeties', includeTies);

Error in ==> knnclassify at 174
dIndex = knnsearch(TRAIN,sample,'distance', distance,'K',K);




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.