--- a
+++ b/src/metrics/training_metrics.py
@@ -0,0 +1,21 @@
+
+
+
+class AverageMeter(object):
+    """Computes and stores the average and current value"""
+    def __init__(self):
+        self.reset()
+
+    def reset(self):
+        self.sum = 0
+        self.count = 0
+
+    def update(self, val, n=1):
+        self.sum += val * n
+        self.count += n
+
+    def avg(self):
+        return self.sum / self.count
+
+
+