예제 #1
0
def _precision_at_thresholds(predictions, targets, weights=None):
  return metric_ops.streaming_precision_at_thresholds(
      array_ops.slice(predictions, [0, 1], [-1, 1]),
      targets,
      np.arange(
          0, 1, 0.01, dtype=np.float32),
      weights=weights)
예제 #2
0
def _precision_at_thresholds(predictions, targets, weights=None):
    return metric_ops.streaming_precision_at_thresholds(
        array_ops.slice(predictions, [0, 1], [-1, 1]),
        targets,
        np.arange(0, 1, 0.01, dtype=np.float32),
        weights=weights)