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

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

        Returns: Metric.

        """
        actual_key = "val_" + key
        return self.metric(key, val_metric=metric, mode="val")
add or return val metric.

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

        Returns: Metric.

        
add or return val metric.
add or return val metric .
def val_metric(self, key, metric=None):
        actual_key = "val_" + key
        return self.metric(key, val_metric=metric, mode="val")
def val_metric ( self , key , metric = None ) : actual_key = "val_" + key return self . metric ( key , val_metric = metric , mode = "val" )
add or return val metric.
add or return val metric .
"""add or return val metric.

        Args:
            key: String. The actual key will be `"val_"+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 `"val_"+key`.
String . The actual key will be ` " val_ " + key ` .
metric