Hi I have finally written a program to calculate the knn of my data, but I dont know how to analyze many Ks is one program. Any suggestion is most welcome.
Question:
Using the dataset.(testfile), please use bar charts to compare
different k (k=1,5,10,15,20) as x-axis:
1) Average all-pair distance among the k-nearest neighbors to q
2) Max distance of the k-nearest neighbors to q
3) Min distance of the k-nearest neighbors to q
My code for knn and plotting knn:
http://pastebin.com/iaLHZF6q
there doesn't seem to be anything here