https://github.com/mddragnev/k-nearest-neighbors
C++ implementation for machine learning algorithm K-NN
https://github.com/mddragnev/k-nearest-neighbors
knearest-neighbors knn-algorithm machine-learning nearest-neighbours
Last synced: 3 months ago
JSON representation
C++ implementation for machine learning algorithm K-NN
- Host: GitHub
- URL: https://github.com/mddragnev/k-nearest-neighbors
- Owner: mddragnev
- Created: 2020-06-17T16:13:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-18T17:28:43.000Z (over 5 years ago)
- Last Synced: 2025-04-08T04:23:31.562Z (8 months ago)
- Topics: knearest-neighbors, knn-algorithm, machine-learning, nearest-neighbours
- Language: C++
- Homepage:
- Size: 5.86 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Machine learning algorithm k-NN implementation
## Description
K-Nearest Neighbors is one of the most basic yet essential classification algorithms in Machine Learning. It belongs to the supervised learning domain and finds intense application in pattern recognition.
## Input
The data contains records about turnover of a company, team characteristics and whether a company is succesful or not.
We are given some prior data (also called training data), which classifies coordinates into groups identified by an attribute.
## How does the algorithm work
Given the path to a .csv file it computes the outcome whether a company will be succesful or not using the k nearest neighbours method. Basically, the algorithm run 4 steps:
1) Calculates all the distances between training data and test example
2) Sort the data by distance and pick 'k' of them
3) Within these k, calculate the successful and unsuccessful
4) Based on which are more clasify the test example ( if equal then we clasify as the nearest neighbour)