1. Home
  2. Data Science
  3. K-Nearest Neighbors (KNN)
  4. How does the KNN algorithm make predictions for a new data…

Added 30 Apr 2024

How does the KNN algorithm make predictions for a new data point?

  1. By fitting a decision boundary to the data
  2. By calculating the mean of the nearest neighbors' labels Correct answer
  3. By clustering data points into groups
  4. By reducing the dimensionality of the data

Correct answer

B. By calculating the mean of the nearest neighbors' labels

18 views

MCQSEXAM

Explanation

The KNN algorithm predicts the label of a new data point by averaging the labels of its nearest neighbors.

Doubts & discussion

Not sure why the answer is B? 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