Ejemplo n.º 1
0
 def _metric_fn(x):
   labels = x["labels"]
   predictions = x["predictions"]
   return metrics.recall(labels, predictions)
Ejemplo n.º 2
0
def _recall(predictions, targets, weights=None):
    return metrics.recall(labels=targets,
                          predictions=predictions,
                          weights=weights)
Ejemplo n.º 3
0
 def _metric_fn(x):
     labels = x["labels"]
     predictions = x["predictions"]
     return metrics.recall(labels, predictions)
Ejemplo n.º 4
0
def _recall(predictions, targets, weights=None):
  return metrics.recall(
      labels=targets, predictions=predictions, weights=weights)