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

Function compute_fnr

tensorflow/contrib/metrics/python/ops/metric_ops.py:663–665  ·  view source on GitHub ↗
(fn, tp, name)

Source from the content-addressed store, hash-verified

661 name=None)
662
663 def compute_fnr(fn, tp, name):
664 return array_ops.where(
665 math_ops.greater(fn + tp, 0), math_ops.div(fn, fn + tp), 0, name)
666
667 fnr = compute_fnr(false_n, true_p, 'value')
668 update_op = compute_fnr(false_negatives_update_op, true_positives_update_op,

Calls 2

greaterMethod · 0.80
divMethod · 0.80

Tested by

no test coverage detected