This is a simple implementation of the K-Nearest Neighbors (KNN) algorithm in C++. The code is designed to classify data points based on their nearest neighbors in a given dataset.
- Compile the code using a C++ compiler.
- Generate a dataset using the
generate_datapoints_csv.pyscript. This writes to abuilddirectory. - Run the compiled program to classify the data point. Currently the input data point is hardcoded in the
mainfunction.