Unsupervised feature learning with vectorization speedup from http://ufldl.stanford.edu/