| |||||||||||||||||
![]() |
![]() |
![]() |
|||||||||||||||
|
What is K Nearest Neighbors Algorithm?
K-nearest neighbor is a supervised learning algorithm where the result of new instance query is classified based on majority of K-nearest neighbor category. The purpose of this algorithm is to classify a new object based on attributes and training samples. KNN used neighborhood classification as the prediction value of the new query instance. For example We have data from the questionnaires survey (to ask people opinion) and objective testing with two attributes (acid durability and strength) to classify whether a special paper tissue is good or not. Here is four training samples
Now the factory produces a new paper tissue that pass laboratory test with X1 = 3 and X2 = 7. Without another expensive survey, can we guess what the classification of this new tissue is? Fortunately, KNN algorithm can help you to predict this type of problem. Give your comments, questions or suggestions
Preferable reference for this tutorial is Teknomo, Kardi. K-Nearest Neighbors Tutorial. http:\\people.revoledu.com\kardi\ tutorial\KNN\
|
||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||
© 2006 Kardi Teknomo. All Rights Reserved. Designed by CNV Media |
|||||||||||||||||||||||||||||||