Skip to content

A quick vectorized implementation of the K-Nearest-Neighbors algorithm.

License

Notifications You must be signed in to change notification settings

RobLaughlin/KNN-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KNN-Demo

A quick vectorized implementation of the K-Nearest-Neighbors algorithm.

Run Demo

py 2D_example.py
py 3D_example.py

Here is a visual animation of 3D_example.py.
The points with a dark outline around them indicate they are test data points, and these are points which were classified based on their nearest neighbors, with the K used being the default sqrt(N) where N is the number of data points.

About

A quick vectorized implementation of the K-Nearest-Neighbors algorithm.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages