K-means feature learning demo on CIFAR translated to Lua/Torch7. This work was published as "An Analysis of Single-Layer Networks in Unsupervised Feature Learning" by Adam Coates et al. 2011. The original MatLab code can be found in http://www.cs.stanford.edu/~acoates/
It requires unsup
and optim
packages.
luarocks install unsup optim
Use the command below.
th run.lua