def problem_metric_fn(*args):
    "Returns an aggregation of the metric_fn's returned values."
    (scores, weights) = metric_fn(*args)
    return tf.metrics.mean(scores, weights)
Returns an aggregation of the metric_fn's returned values.
def problem_metric_fn(*args):
    
    (scores, weights) = metric_fn(*args)
    return tf.metrics.mean(scores, weights)