What is the role of cross-validation in tuning the value of K in the KNN algorithm?
-
A
To select the optimal value of K based on the training data
Correct answer
-
B
To evaluate the performance of the model on unseen data
-
C
To reduce the variance of the model
-
D
To prevent overfitting of the model
Correct answer
A. To select the optimal value of K based on the training data
15 views
Explanation
Cross-validation is used to select the optimal value of K by evaluating the performance of the model on different subsets of the training data.
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ