What is the meaning of K in KNN algorithm?
Answers
Answered by
2
Answer:
'k' in KNN is a parameter that refers to the number of nearest neighbours to include in the majority of the voting process
Explanation:
If you calculate accuracy for training dataset, KNN with k=1, you get 100% as the values are already seen by the model and a rough decision boundary is formed for k=1. ... 1) you might have taken the entire dataset as train data set and would have chosen a subpart of the dataset as the test dataset
Similar questions
Chemistry,
1 month ago
Math,
1 month ago
Science,
1 month ago
Computer Science,
10 months ago
Math,
10 months ago