Modified hidden units for batch training