def intermediate_value(self, metric):
        """ Return an intermediate (inter-epoch) value of a metric """
        if ':' in metric:
            metric_name = metric.split(':')[-1]
        else:
            metric_name = metric

        return self.metrics_by_name[metric_name].value()
def intermediate_value ( self , metric ) : if ':' in metric : metric_name = metric . split ( ':' ) [ - 1 ] else : metric_name = metric return self . metrics_by_name [ metric_name ] . value ( )
Return an intermediate (inter-epoch) value of a metric