trainer: do the evaluation after training.