How does the KNN algorithm make predictions for a new data point?
-
A
By fitting a decision boundary to the data
-
B
By calculating the mean of the nearest neighbors' labels
Correct answer
-
C
By clustering data points into groups
-
D
By reducing the dimensionality of the data
Correct answer
B. By calculating the mean of the nearest neighbors' labels
18 views
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