make learning parameter function of batch size
migrating cnn stuff to ClConvolve