A simple python script that implements K Nearest Neghbors Algorithm (With manual K as well as input from user)
K nearest neighbors is a simple algorithm that stores all available cases and classifies new cases based on a similarity measure (e.g., distance functions). KNN has been used in statistical estimation and pattern recognition already in the beginning of 1970’s as a non-parametric technique
One must have Python installed in his local system. Use jupyter notebook to run this script.
Download Anaconda here
-trainData.csv -testData.csv