MCPcopy Create free account
hub / github.com/alibaba/euler / auc_score

Function auc_score

tf_euler/python/utils/metrics.py:29–32  ·  view source on GitHub ↗
(labels, predict, num_thresholds=5000)

Source from the content-addressed store, hash-verified

27
28
29def auc_score(labels, predict, num_thresholds=5000):
30 predictions = tf.nn.sigmoid(predict)
31 _, auc = tf.metrics.auc(labels, predictions, num_thresholds=num_thresholds)
32 return auc
33
34
35def f1_score(labels, predict, name=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected