← BYTES
Artificial Intelligence·Starter·Ref: 19.1.18

What is the basic idea behind the k-nearest neighbors (KNN) algorithm?

Have a question about this video? Mention reference 19.1.18 when you contact us.

a.It trains a deep neural network with exactly k layers
b.To classify (or predict a value for) a new data point, look at the k most similar examples already seen in the training data, and base the prediction on those neighbors (e.g., the majority class among them)
c.It requires no training data of any kind
d.It only works for exactly two possible output classes
KNN makes a prediction for a new point by finding the k training examples most similar to it (by some distance measure) and basing the prediction on those neighbors -- for classification, often a majority vote among the k neighbors' labels. It's simple and intuitive, though it requires keeping the whole training set around and comparing against it at prediction time.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES19118#ArtificialIntelligence