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.
- Host: GitHub
- URL: https://github.com/agung96tm/learn-knn
- Owner: agung96tm
- License: mit
- Created: 2024-11-14T10:52:19.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-11-14T10:58:26.000Z (5 months ago)
- Last Synced: 2025-01-25T19:30:47.414Z (3 months ago)
- Topics: knn, knn-algorithm, python
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/)