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

https://github.com/agung96tm/learn-knn

Python implementation of the K-Nearest Neighbors (KNN) algorithm.
https://github.com/agung96tm/learn-knn

knn knn-algorithm python

Last synced: about 1 month ago
JSON representation

Python implementation of the K-Nearest Neighbors (KNN) algorithm.

Awesome Lists containing this project

README

        

Learn KNN
========================================
Python implementation of the K-Nearest Neighbors (KNN) algorithm.

## How To Run

```shell
python3 -m venv venv
pip install -r requirements.txt
python main.py
# output: results/result.csv
```

## Results
```
| X1 | X2 | Result | | | X1 | X2 | Predicted_Result |
| --- | --- | ------ | ---- | ---- | --- | --- | ---------------- |
| 1 | 2 | True | | | 9.0 | 9.0 | True |
| 3 | 5 | False | | | 4.0 | 4.0 | True |
| 4 | 3 | True | | | 3.0 | 5.0 | False |
| 5 | 3 | True | | | | | |
| 6 | 4 | False | | | | | |
| 7 | 5 | True | | | | | |
| 1 | 6 | True | | | | | |
| 3 | 7 | False | | | | | |
| 5 | 9 | True | | | | | |
| 6 | 9 | True | | | | | |

```

## Contributors
* Agung Yuliyanto: [Github](https://github.com/agung96tm), [LinkedIn](https://www.linkedin.com/in/agung96tm/)