Computer Science, asked by mohdr8473, 1 year ago

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 jeevan9447
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 Sidyandex
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