def test_str(self):
    logger = TestMetricLogger.create_logger()
    expected = ['train_accuracy,0,0.5', 'train_accuracy,1,0.6', 'test_accuracy,0,0.4']
    self.assertEqual(str(logger), '\n'.join(expected))
def test_str(self):
    logger = TestMetricLogger.create_logger()
    expected = ['train_accuracy,0,0.5', 'train_accuracy,1,0.6', 'test_accuracy,0,0.4']
    self.assertEqual(str(logger), '\n'.join(expected))