This repository setups up a basic dry kNN (k-Nearest Neighbor). The idea is to have a structure where training data can quickly be loaded into predictions can be made.
The most basic example is provided below
#import first
import knn
#setup trainer, k can be defined here
trainer = knn.knn(k=5)
#load training data
trainer.load(X,Y)
#make a prediction
guess = trainer.predict(testX)
An example with a visual representation is provided in example.py An example without a visual representation is provided in examplesimple.py An example that tunes the hyper parameter k is provided in exampletuning.py
All documentation has been provided in docstrings. Any merge requests should have docstrings included.