About 606,000 results
Open links in new tab
  1. K-Nearest Neighbor (KNN) Algorithm - GeeksforGeeks

    Aug 23, 2025 · When you want to classify a data point into a category like spam or not spam, the KNN algorithm looks at the K closest points in the dataset. These closest points are called neighbors.

  2. k-nearest neighbors algorithm - Wikipedia

    Most often, it is used for classification, as a k-NN classifier, the output of which is a class membership. An object is classified by a plurality vote of its neighbors, with the object being assigned to the class …

  3. What is the k-nearest neighbors (KNN) algorithm? - IBM

    The k-nearest neighbors (KNN) algorithm is a non-parametric, supervised learning classifier, which uses proximity to make classifications or predictions about the grouping of an individual data point.

  4. KNeighborsClassifier — scikit-learn 1.7.2 documentation

    This means that knn.fit(X, y).score(None, y) implicitly performs a leave-one-out cross-validation procedure and is equivalent to cross_val_score(knn, X, y, cv=LeaveOneOut()) but typically much faster.

  5. StatQuest: K-nearest neighbors, Clearly Explained - YouTube

    Machine learning and Data Mining sure sound like complicated things, but that isn't always the case. Here we talk about the surprisingly simple and surprisingly effective K-nearest neighbors...

  6. K-Nearest Neighbors (KNN) in Machine Learning

    K-nearest neighbors (KNN) algorithm is a type of supervised ML algorithm which can be used for both classification as well as regression predictive problems. However, it is mainly used for classification …

  7. What is k-Nearest Neighbor (kNN)? | A Comprehensive k-Nearest

    kNN, or the k-nearest neighbor algorithm, is a machine learning algorithm that uses proximity to compare one data point with a set of data it was trained on and has memorized to make predictions.

  8. KNN Algorithm – K-Nearest Neighbors Classifiers and Model Example

    Jan 25, 2023 · How Does the K-Nearest Neighbors Algorithm Work? The K-NN algorithm compares a new data entry to the values in a given data set (with different classes or categories). Based on its …

  9. What Is a K-Nearest Neighbor Algorithm? | Built In

    May 22, 2025 · K-nearest neighbor (KNN) is a non-parametric, supervised machine learning algorithm that classifies a new data point based on the classifications of its closest neighbors, and is used for …

  10. 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.