We may earn an affiliate commission when you visit our partners.

K-Nearest Neighbors

Save
May 1, 2024 Updated May 11, 2025 41 minute read

K-Nearest Neighbors, often abbreviated as KNN, is a foundational algorithm in the world of machine learning. At its core, KNN operates on the simple idea that similar things exist in close proximity. In other words, data points that are alike will tend to be near each other in a given space. This algorithm can be used to classify new, unseen data points based on the "company they keep" or to predict a value based on the values of their closest neighbors. It's a type of "lazy learning" because it doesn't build a model beforehand; instead, it stores the entire training dataset and performs calculations only when a prediction is needed.

Path to K-Nearest Neighbors

Take the first step.
We've curated eight courses to help you on your path to K-Nearest Neighbors. Use these to develop your skills, build background knowledge, and put what you learn to practice.
Sorted from most relevant to least relevant:

Share

Help others find this page about K-Nearest Neighbors: by sharing it with your friends and followers:

Reading list

We've selected 13 books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in K-Nearest Neighbors.
This foundational text in the field of statistical learning, covering a wide range of topics including KNN. It provides a rigorous treatment of the theoretical underpinnings of machine learning algorithms. While mathematically demanding, it is an invaluable reference for those seeking a deep understanding.
A comprehensive introduction to pattern recognition and machine learning, with a strong emphasis on a probabilistic perspective. KNN is discussed within this framework. widely-used textbook for advanced undergraduates and graduate students and serves as an excellent reference.
Provides a broad introduction to the field of machine learning, covering various algorithms including KNN. It aims to make the fundamentals accessible to students with a background in computer programming, probability, calculus, and linear algebra. It is often used as a textbook.
Provides a theoretical foundation for machine learning algorithms, including KNN. It delves into the principles and mathematical derivations. It is geared towards advanced undergraduates and graduate students seeking a deeper theoretical understanding.
Focuses on the process of building predictive models, including the use of KNN. It provides practical guidance on data preprocessing, model building, and evaluation. It's a valuable resource for practitioners and those interested in applied machine learning.
Covers data mining techniques with a focus on practical tools and methods, including KNN. It provides a good balance of concepts and practical implementation using the Weka software. Useful for understanding the application of KNN in data mining tasks.
Provides a rigorous and in-depth theoretical treatment of nearest neighbor methods, including KNN. It covers statistical, probabilistic, combinatorial, and geometric aspects. It specialized text suitable for researchers and those focusing specifically on the theoretical underpinnings of KNN.
This textbook is designed for engineering students and provides an introduction to machine learning concepts, including a section on KNN. It aims to make the material accessible and relevant for an engineering audience.
Provides hands-on implementations of machine learning algorithms, including KNN, in Python. It focuses on building a practical understanding by working through code examples. Suitable for those who learn best by doing.
Focuses on the engineering aspects of building and deploying machine learning systems. While not solely about KNN, it provides valuable context on how algorithms like KNN are used in production systems and the challenges involved. Relevant for professionals.
Is the foundational text on reinforcement learning. While not directly about KNN, it covers fundamental concepts in machine learning and provides a different perspective on learning algorithms that can be valuable for a well-rounded understanding of the field.
Table of Contents
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2025 OpenCourser