Gradient LabSign up free

ML glossary › K

What is k in machine learning?

In k-nearest neighbors, how many nearby examples get a vote.

Where it shows up

Classification

k-nearest neighbors

A new customer has almost no history. Maya asks what similar customers did.

See k in motion. The lesson animates it step by step, free.

Open the lesson

Related terms