def _metric_fn(x): labels = x["labels"] predictions = x["predictions"] return metrics.recall(labels, predictions)
def _recall(predictions, targets, weights=None): return metrics.recall(labels=targets, predictions=predictions, weights=weights)
def _recall(predictions, targets, weights=None): return metrics.recall( labels=targets, predictions=predictions, weights=weights)