def test_save_accuracy_curve1(self): """ save_accuracy_curve case1: simply call the method. """ logpath = os.path.join(self.root, 'training-log.txt') filepath = os.path.join(self.root, 'training-log.png') if os.path.exists(filepath): os.remove(filepath) visualizer.save_accuracy_curve(logpath, filepath) assert os.path.exists(filepath)
def visualizeLog(args): visualizer.save_accuracy_curve(args.input, args.acc) visualizer.save_loss_curve(args.input, args.loss)