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

Function acc_score

tf_euler/python/utils/metrics.py:23–26  ·  view source on GitHub ↗
(labels, predict, name=None)

Source from the content-addressed store, hash-verified

21
22
23def acc_score(labels, predict, name=None):
24 predictions = tf.floor(predict + 0.5)
25 _, acc = tf.metrics.accuracy(labels, predictions)
26 return acc
27
28
29def auc_score(labels, predict, num_thresholds=5000):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected