To instantiate a Trainer, you need to define the training configuration and an evaluation metric.