Does this code support evaluation during training? If I want to evaluate while training, what should I do?