tfbp/trainer.py
def train_metric(self, key, metric=None):
        """add or return train metric.

        Args:
            key: String. The actual key will be `"train_"+key`.
        Kwargs:
            metric: Metric. If the `key` is a new metric, value must be specified.

        Returns: Metric.

        """
        actual_key = "train_" + key
        return self.metric(key, train_metric=metric, mode="train")
add or return train metric.

        Args:
            key: String. The actual key will be `"train_"+key`.
        Kwargs:
            metric: Metric. If the `key` is a new metric, value must be specified.

        Returns: Metric.

        
add or return train metric.
add or return train metric .
def train_metric(self, key, metric=None):
        actual_key = "train_" + key
        return self.metric(key, train_metric=metric, mode="train")
def train_metric ( self , key , metric = None ) : actual_key = "train_" + key return self . metric ( key , train_metric = metric , mode = "train" )
add or return train metric.
add or return train metric .
"""add or return train metric.

        Args:
            key: String. The actual key will be `"train_"+key`.
        Kwargs:
            metric: Metric. If the `key` is a new metric, value must be specified.

        Returns: Metric.

        """
self
key
String. The actual key will be `"train_"+key`.
String . The actual key will be ` " train_ " + key ` .
metric