Exemplo n.º 1
0
def _recall_at_thresholds(predictions, targets, weights=None):
  return metric_ops.streaming_recall_at_thresholds(
      array_ops.slice(predictions, [0, 1], [-1, 1]),
      targets,
      np.arange(
          0, 1, 0.01, dtype=np.float32),
      weights=weights)
Exemplo n.º 2
0
def _recall_at_thresholds(predictions, targets, weights=None):
    return metric_ops.streaming_recall_at_thresholds(
        array_ops.slice(predictions, [0, 1], [-1, 1]),
        targets,
        np.arange(0, 1, 0.01, dtype=np.float32),
        weights=weights)