A simple k-nearest neighbors (KNN) classifier algorithm implementation in python.
_knn = knn(k=8, distanceFunc=manhatten)
_knn.fit(trainData,trainLabels)
predictions = _knn.predict(samples)
score = _knn.score(testData,testLabels)
install requirements with: pip install -r requirements.txt
- sklearn
- numpy
- matplotlib