How to use Similarity Measure to find the Nearest Neighbours and Classify the New Example KNN Solved

preview_player
Показать описание
How to use Similarity Measure to find the Nearest Neighbours and CLassify the New Example KNN Solved Example by Dr. Mahesh Huddar

Given the training data, predict the class of the following new example using k-Nearest Neighbour for k=5:
ageless than or equal to 30, income=medium, student=yes, credit- rating=fair.

Use Similaity measure to find the nearest neighbours

********************************

4. Like, Share, Subscribe, and Don't forget to press the bell ICON for regular updates
Рекомендации по теме
Комментарии
Автор

in Hamming Distance, if two x1==x2, then value is 0. Otherwise one. So why we're using 1 for same. And 0 for difference?

EngrAhmadMakki
Автор

for Ranking we have to take the minimum distance right?why are we taking higher instead

resshmibc
Автор

why income is given weight 2 and rest are value with 1..?

ansariqbal
Автор

How did u find income weight is 2 ? Is it given in question ?

mlkmoaz
Автор

why do you we divide by 4 ? since 4 attributes or is it a standart ?

eylmaz
Автор

We should consider the minimum distance. But why are we considering maximum value

chaithranagaraju