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

    3 days ago · 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 …

  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 …

  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 …

  4. KNeighborsClassifier — scikit-learn 1.8.0 documentation

    Number of neighbors to use by default for kneighbors queries. Weight function used in prediction. Possible values: ‘uniform’ : uniform weights. All points in each neighborhood are weighted …

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

    Define the k-nearest neighbor (kNN) algorithm and understand how it works by examining the four types of distance metrics and understanding use cases. ...

  6. What is KNN (K-Nearest Neighbors)? A Beginner-Friendly Guide …

    May 14, 2025 · Learn K-Nearest Neighbors (KNN) in machine learning. Explore how KNN works, distance metrics, classification vs regression, weighted KNN, pros & cons, Python code, and …

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

    By choosing K, the user can select the number of nearby observations to use in the algorithm. Here, we will show you how to implement the KNN algorithm for classification, and show how …

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

    May 22, 2025 · Summary: K-nearest neighbor (KNN) is a supervised machine learning algorithm that classifies data points based on the majority class of their closest neighbors. It uses …

  9. 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 …

  10. Mathematical explanation of K-Nearest Neighbour

    Jul 23, 2025 · KNN stands for K-nearest neighbour is a popular algorithm in Supervised Learning commonly used for classification tasks. It works by classifying data based on its similarity to …