Skip to content
Code from blog.wavecrafters.com
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
knearest.rb

README.md

wc-blog

this is code from the blog of wavecrafters: http://blog.wavecrafters.com

knearest.rb

This is code for playing with the k-nearest neighbors (k-NN) classifier.

It has 2 classifiers, 2 k-nn methods, the weightedknn and the knnestimate, this one without weights, meaning that each point of the k set contributes the same to the estimation.

Original code from the Toby Segaran great book Programming Collective Intelligence, but instead of Python I'm using Ruby, I love Ruby.

You can’t perform that action at this time.