"""Training and evaluation utilities."""