super_gradients.training.legacy package
Submodules
super_gradients.training.legacy.utils module
- class super_gradients.training.legacy.utils.PrefetchDataLoader(dataloader, device, half=False)[source]
Bases:
object
- super_gradients.training.legacy.utils.is_better(new_metric, current_best_metric, metric_to_watch='acc')[source]
Determines which of the two metrics is better, the higher if watching acc or lower when watching loss :param new_metric: the new metric :param current_best_metric: the compared to metric :param metric_to_watch: acc or loss :return: bool, True if new metric is better than current