def post_epoch(self, status):
        cost = float(self.cost.view(status))
        if cost + self.eps < self.best_cost:
            self.best_epoch = status.current_epoch
            self.best_cost = cost

            self._stash_model(status)

            if self.callback is not None:
                self.callback(self, status)

        if status.current_epoch - self.best_epoch >= self.lookahead and status.current_epoch >= self.min_nb_epochs:
            raise TrainingExit(status)
dataset/ETHPy150Open SMART-Lab/smartlearner/smartlearner/stopping_criteria.py/EarlyStopping.post_epoch/original