News for hackers. Stuff that matters.
Re:K-Nearest Neighbors from Scratch by jeena on Wednesday June 15, 2016 @03:40AM (#11907730)
How would you learn how to implement that algorythm if you'd just use an existing implementation?
Re:K-Nearest Neighbors from Scratch by AReallyGoodName on Wednesday June 15, 2016 @05:29PM (#11912282)
Read the wiki page on it, run through the psuedocode on pen and paper a few times and then implement it.

Source: I did this when I wrote a library for reverse geocoding which uses a kd tree.

https://github.com/AReallyGoodName/OfflineReverseGeocode

Re:K-Nearest Neighbors from Scratch by UK-AL on Wednesday June 15, 2016 @06:27AM (#11908331)
Implementing a spatial tree is not the same as implementing Nearest neighbours. It's just a data structure to allow efficient culling.