K-Nearest Neighbors (KNN) (KNN)

Also known as: k-NN

Quick definition

A prediction method based on the labels or values of nearby examples.

A prediction method based on the labels or values of nearby examples.

Example: A classifier labels a new sample using its closest training points.

Where it is useful: classification, prediction, recommendation, and pattern discovery.

Examples

  • A classifier labels a new sample using its closest training points.

Use cases

  • classification, prediction, recommendation, and pattern discovery.

Frequently asked questions

What is K-Nearest Neighbors (KNN)?

A prediction method based on the labels or values of nearby examples.

Can you give an example of K-Nearest Neighbors (KNN)?

A classifier labels a new sample using its closest training points.

Categories and tags