Skip to content

Instantly share code, notes, and snippets.

View sonichandni's full-sized avatar
💻
Focusing

Chandni Soni sonichandni

💻
Focusing
View GitHub Profile
@insignificantGuy
insignificantGuy / faq
Created November 22, 2021 12:36
pepcoding.com KNN
1. What is K Nearest Neighbour Algorithm?
Ans. K Nearest Neighbour is an algorithm that can be used for classification and Regression. It stores the training case and classifies the new data based on the similarity measures.
2. What is the meaning of K in K-Nearest Neighbour?
Ans. K stands for the number of nearest neighbors that we wish to include in finding the classification of given data. It can be any number value ranging from 1 to n where n is the number of datasets given.
3. What are the advantages of K-Nearest Neighbour?
Ans. K-Nearest Neighbours is a fast and accurate algorithm. It is easy to implement and it is a versatile Algorithm. One can use it for Regression as well as Classification.
4. What are the disadvantages of K-Nearest Neighbour?