(labels, predict, num_thresholds=5000)
| 27 | |
| 28 | |
| 29 | def 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 | |
| 35 | def f1_score(labels, predict, name=None): |
nothing calls this directly
no outgoing calls
no test coverage detected