K-nearest neighbors algorithm in java that supports the cosine and euclidean distance functions.
- Run
rebuild.sh
script file which will createKNN.jar
. - Run
rerun.sh
script file with following paramtersjava -cp knn.jar cs286.Knn <hold-out %> <k> <distance> <input> <output>
it uses iris-data set as an input.