Working classes adapted from Theano's example code. These modules were written when I took CS 277 Data Mining at UCI.