Source code for opto.utils.trainer


[docs] class Trainer: def __init__(self, metric, optimizer): self.metric = metric self.optimizer = optimizer