4 ms·
K-NN is one of the more concise classifiers to implement. I did a Python implementation a while ago that can fit into a tweet -[1]. Since maps/lambdas are avail
by abhgh 9y ago
K-NN is one of the more concise classifiers to implement. I did a Python implementation a while ago that can fit into a tweet -[1]. Since maps/lambdas are available in Ruby, this should be possible in Ruby too. Sorry for the bad presentation - I am planning to migrate soon.
[1] http://quipu-strands.blogspot.com/2014/08/knn-classifier-in-one-line-of-python.html http://quipu-strands.blogspot.com/2014/08/knn-classifier-in-...