Computer Science, asked by ramyashreekatti307, 3 months ago


What is the meaning of K in KNN algorithm?​

Answers

Answered by kanishkjoshia
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