how do ı do majority vote code in matlab

1 visualización (últimos 30 días)
mts
mts el 13 de Jun. de 2018
Comentada: mts el 13 de Jun. de 2018
ı am trying to write k-nn algorithm but ı couldnt write a "majority vote" part of the code , can somebody help me about that?
  2 comentarios
Jan
Jan el 13 de Jun. de 2018
Maybe. Please post the current code and ask a specific question.
mts
mts el 13 de Jun. de 2018
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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Statistics and Machine Learning Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by