how do ı do majority vote code in matlab

조회 수: 8 (최근 30일)
mts
mts 2018년 6월 13일
댓글: mts 2018년 6월 13일
ı am trying to write k-nn algorithm but ı couldnt write a "majority vote" part of the code , can somebody help me about that?
  댓글 수: 2
Jan
Jan 2018년 6월 13일
Maybe. Please post the current code and ask a specific question.
mts
mts 2018년 6월 13일
so here is my code in attachment.so my problem is i have one unknown value and two class , i calculate the distances from unknown value to every known value on the code,and i make one matrice but now i have to take three smallest distance and i must determine their class and i dont know how can i take these three value and determine their class.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by