Demo and Codebase If you would like to play with the k-Nearest Neighbors algorithm in your browser, try out the visually interactive demo. All of the code for the demo is hosted on GitHub. Stars are always appreciated. The Scenario Say you have a garden that is host to many different kinds of plants. Each plant’s location in the garden is based on two of its features. The west to east direction of
![k-Nearest Neighbors from Scratch by David Lettier](https://cdn-ak-scissors.b.st-hatena.com/image/square/9e13e735ed4ec0b3e8c296d7ff31b08f79629a0a/height=288;version=1;width=512/https%3A%2F%2Flettier.github.io%2Fimages%2F2016-06-10-k-nearest-neighbors-from-scratch%2Fjumbotron_image.png)