public bool HasFinished(ITrainer trainer)
 {
     return(trainer.GetEpoch() > limit);
 }