This question is closed. Reopen it to edit or answer.

kNN Classification problem. The test result is always the first label of training sample.

1 view (last 30 days)
h612 on 3 Nov 2016
Closed: Walter Roberson on 3 Jan 2017
Hello everyone I've a training set of 17 observations. The dimensions of training and testing data are
  • X= 17x7660 (features, each row is feats from each obs)
  • Y= 17 x 1 (label for each row)and Test feat isZ=1x7660I'm using knnclassify and everytime i run different test samples, I always end up with same prediction result; which is the first column of training data (Y(1,:)) |...
  1. Im not sure if my training has an error..or where the problem is.. urgently waiting for help|

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!