GitHunt
DA

danisaleem/Simple-K-Nearest-Neighbors-Python

A simple python script that implements K Nearest Neighbors Algorithm. University Assignment

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

Languages

Jupyter Notebook100.0%

Contributors

Created February 17, 2020
Updated June 28, 2020