You can also modify the function evaluate(). This can help you decide how you can evaluate your validation set during training.