About 46,600 results
Open links in new tab
  1. KNeighborsClassifierscikit-learn 1.8.0 documentation

    Classifier implementing the k-nearest neighbors vote. Read more in the User Guide. Number of neighbors to use by default for kneighbors queries. Weight function used in prediction. …

  2. k-nearest neighbors algorithm - Wikipedia

    In statistics, the k-nearest neighbors algorithm (k-NN) is a non-parametric supervised learning method. It was first developed by Evelyn Fix and Joseph Hodges in 1951, [1] and later …

  3. K-Nearest Neighbor (KNN) Algorithm - GeeksforGeeks

    Dec 23, 2025 · It works by finding the "k" closest data points (neighbors) to a given input and makes a predictions based on the majority class (for classification) or the average value (for …

  4. Python Machine Learning - K-nearest neighbors (KNN) - W3Schools

    KNN is a simple, supervised machine learning (ML) algorithm that can be used for classification or regression tasks - and is also frequently used in missing value imputation.

  5. K-Nearest Neighbors (KNN) Classification with scikit-learn

    Feb 20, 2023 · While kNN can be used for classification and regression, this article will focus on building a classification model. Classification in machine learning is a supervised learning task …

  6. 8.20.2. sklearn.neighbors.KNeighborsClassifier — scikit-learn ...

    For classification or regression based on k-neighbors, if neighbor k and neighbor k+1 have identical distances but different labels, then the result will be dependent on the ordering of the …

  7. Scikit Learn - KNeighborsClassifier

    In this example, we will be implementing KNN on data set named Iris Flower data set by using scikit-learn KneighborsClassifer. This data set has 50 samples for each different species …