def check_best(self, metric_dict):
    '\n        Hook function, called after metrics are calculated\n        '
    if (metric_dict['bl_acc'] > self.best_value):
        if (self.iters > 0):
            LOGGER.text(f"Evaluation improved from {self.best_value} to {metric_dict['bl_acc']}", level=LoggerObserver.INFO)
            self.best_value = metric_dict['bl_acc']
            self.save_checkpoint('best')
        elif self.visualize_when_val:
            self.visualize_pred()
Hook function, called after metrics are calculated
def check_best(self, metric_dict):
    '\n        \n        '
    if (metric_dict['bl_acc'] > self.best_value):
        if (self.iters > 0):
            LOGGER.text(f"Evaluation improved from {self.best_value} to {metric_dict['bl_acc']}", level=LoggerObserver.INFO)
            self.best_value = metric_dict['bl_acc']
            self.save_checkpoint('best')
        elif self.visualize_when_val:
            self.visualize_pred()