changed DBN preTrain to pass epoch count on to RBM layer