1. Home
  2. Data Science
  3. K-Nearest Neighbors (KNN)
  4. Which distance is default in sklearn KNN?

Added 14 Sep 2025

Which distance is default in sklearn KNN?

  1. Manhattan
  2. Euclidean
  3. Minkowski Correct answer
  4. Chebyshev

Correct answer

C. Minkowski

16 views

MCQSEXAM

Explanation

scikit-learn's KNeighborsClassifier uses metric='minkowski' with p=2 by default, which is equivalent to the Euclidean distance.

Reference

https://scikit-learn.org/stable/modules/generated/sklearn.neighbors.KNeighborsClassifier…

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More K-Nearest Neighbors (KNN) MCQs

Practise all K-Nearest Neighbors (KNN) MCQs

Similar MCQs