K-Nearest Neighbors for Machine Learning

Last Updated on August 15, 2020

In this post you will discover the k-Nearest Neighbors (KNN) algorithm for classification and regression. After reading this post you will know.

  • The model representation used by KNN.
  • How a model is learned using KNN (hint, it’s not).
  • How to make predictions using KNN
  • The many names for KNN including how different fields refer to it.
  • How to prepare your data to get the most from KNN.
  • Where to look to learn more about the KNN algorithm.

This post was written for developers and assumes no background in statistics or mathematics. The focus is on how the algorithm works and how to use it for predictive modeling problems. If you have any questions, leave a comment and I will do my best to answer.

Kick-start your project with my new book Master Machine Learning Algorithms, including step-by-step tutorials and the Excel Spreadsheet files for all examples.

Let’s get started.

K-Nearest Neighbors for Machine Learning

K-Nearest Neighbors for Machine Learning
Photo by Valentin Ottone, some rights reserved.

KNN Model Representation

The
To finish reading, please visit source site