1. Home
  2. Data Science
  3. K-Nearest Neighbors (KNN)
  4. What is the role of cross-validation in tuning the value…

Added 1 May 2024

What is the role of cross-validation in tuning the value of K in the KNN algorithm?

  1. To select the optimal value of K based on the training data Correct answer
  2. To evaluate the performance of the model on unseen data
  3. To reduce the variance of the model
  4. To prevent overfitting of the model

Correct answer

A. To select the optimal value of K based on the training data

15 views

MCQSEXAM

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

Shown after review. No links please.

More K-Nearest Neighbors (KNN) MCQs

Practise all K-Nearest Neighbors (KNN) MCQs

Similar MCQs