Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nazanin1369/datamining-knn
- Owner: Nazanin1369
- Created: 2017-09-12T02:23:03.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-12T07:20:15.000Z (about 7 years ago)
- Last Synced: 2024-10-12T08:15:34.072Z (25 days ago)
- Topics: knn-classification, machine-learning
- Language: Python
- Size: 90.8 KB
- Stars: 17
- Watchers: 3
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```