In k-nn algorithm, given a set of training examples and the value of k < size of training set (), the algorithm predicts the class of a test example to be the
Answers
Answered by
0
The algorithm predicts the class of a test example to be the most frequent class among the classes of k closest training examples.
Answered by
0
KNN has no model other than storage of the entire dataset, so there is no learning required for it.
Efficient implementations can pile the data using complex data structures like k - d trees to make look up and equivalent of new patterns which is done during the prediction efficient.
Similar questions
Math,
7 months ago
English,
7 months ago
Biology,
7 months ago
Computer Science,
1 year ago
Environmental Sciences,
1 year ago
Math,
1 year ago
Math,
1 year ago