Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nazanin1369/datamining-knn

Implement KNN classification algorithm in Python
https://github.com/nazanin1369/datamining-knn

knn-classification machine-learning

Last synced: 9 days ago
JSON representation

Implement KNN classification algorithm in Python

Awesome Lists containing this project

README

        

## Data Mining Class Assignment 2
## KNN Algorithm implementation in Python

### Overview
The k-Nearest Neighbors Algorithm is one of the most fundamental and powerful Algorithm to understand, implement and use in classification problems when there is no or little knowledge about the distribution of data.

### Requirements to compile this code
* Python *3.0*
* Pandas
* Numpy

### Testing and Training data
All testing and training data is under ./data directory.

*testing.csv* file has been created and all Direction column values have been calculated, so we will be able to calculate the accuracy of KNN each time.

### Build and Run
Simply run:
```
python main.py
```