MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / compute_fpr

Function compute_fpr

tensorflow/contrib/metrics/python/ops/metric_ops.py:575–577  ·  view source on GitHub ↗
(fp, tn, name)

Source from the content-addressed store, hash-verified

573 name=None)
574
575 def compute_fpr(fp, tn, name):
576 return array_ops.where(
577 math_ops.greater(fp + tn, 0), math_ops.div(fp, fp + tn), 0, name)
578
579 fpr = compute_fpr(false_p, true_n, 'value')
580 update_op = compute_fpr(false_positives_update_op, true_negatives_update_op,

Calls 2

greaterMethod · 0.80
divMethod · 0.80

Tested by

no test coverage detected