def _make_streaming_with_threshold(streaming_metrics_fn, threshold):
def _streaming_metrics(predictions, labels):
return streaming_metrics_fn(predictions=math_ops.to_float(
math_ops.greater_equal(predictions, threshold)),
labels=labels)
return _streaming_metrics
评论列表
文章目录