Grab the right data after updating the DNN.

Also fix a couple off-by-one errors in RBM early stopping. These didn't
have much of an effect on training, it just makes the behavior line up
with what's expected from the parameter descriptions.