Computer Science, asked by rahulKumara927, 1 year ago

How does the k-nearest neighbors classifier computes the distance of the attribute which are not numeric?

Answers

Answered by Anonymous
0

In pattern recognition, the k-nearest neighbors algorithm (k-NN) is a non-parametric method used for classification and regression. In both cases, the input consists of the k closest training examples in the feature space. ... If k = 1, then the object is simply assigned to the class of that single nearest neighbor.

Similar questions