Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 746 Bytes

File metadata and controls

15 lines (11 loc) · 746 Bytes

Simple-K-Nearest-Neighbors-Python

A simple python script that implements K Nearest Neghbors Algorithm (With manual K as well as input from user)

What is K Nearest Neighbors?

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

Pre-requisites

Anaconda Python & Jupyter Notebook

One must have Python installed in his local system. Use jupyter notebook to run this script.
Download Anaconda here

Attached files

-trainData.csv -testData.csv