Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

error in my program

조회 수: 1 (최근 30일)
Balaji M. Sontakke
Balaji M. Sontakke 2018년 4월 11일
마감: MATLAB Answer Bot 2021년 8월 20일
sir, i want to classify testdata and traindata using knnclassify, I have 8 images per person total 80 images of dorsal hand vein, i made 10 classes and i used 3 images per person for testdata and 5 images for traindata, i extract minutie from the vein images. so, my problem is i got matrix of size 600 x 6 testdata and 1000 x 6 as traindata features am having the trainlabel size 50 X 1 when i specify this in knnclassify i got the error. predictlabel = knnclassify(reduced_testdata, reduced_traindata, train_label,3,'euclidean','nearest'); cp = classperf(test_label,predictlabel); cp.CorrectRate*100
  댓글 수: 2
Walter Roberson
Walter Roberson 2018년 4월 11일
Why is it x 6?
You should have something that is number of features in one direction, and number of images per person times number of people in the other direction. So that should be something by 30 for test, and by 50 for training.
Balaji M. Sontakke
Balaji M. Sontakke 2018년 4월 11일
Thanks sir

답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by