def test_overwrite(self):
    logger = TestMetricLogger.create_logger()
    logger.add('train_accuracy', Step.from_iteration(0, 400), 1.0)
    self.assertEqual(logger.get_data('train_accuracy'), [(0, 1.0), (1, 0.6)])
def test_overwrite(self):
    logger = TestMetricLogger.create_logger()
    logger.add('train_accuracy', Step.from_iteration(0, 400), 1.0)
    self.assertEqual(logger.get_data('train_accuracy'), [(0, 1.0), (1, 0.6)])