The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.