What does the k in k-Nearest Neighbors (k-NN) represent?

Machine Learning Easy

Machine Learning — Easy

What does the k in k-Nearest Neighbors (k-NN) represent?

Key points

  • k determines how many neighbors influence the prediction
  • More neighbors (higher k) can lead to smoother decision boundaries
  • Fewer neighbors (lower k) can result in more sensitive predictions

Ready to go further?

Related questions