By Adam Anderson
This write-up assumes you have an general understanding of the TensorFlow programming model, but maybe you haven't kept up to date with the latest library features/standard practices.
By Adam Anderson
This write-up assumes you have an general understanding of the TensorFlow programming model, but maybe you haven't kept up to date with the latest library features/standard practices.
# coding=utf-8 | |
# auc值的大小可以理解为: 随机抽一个正样本和一个负样本,正样本预测值比负样本大的概率 | |
# 根据这个定义,我们可以自己实现计算auc | |
import random | |
import time | |
def timeit(func): | |
""" | |
装饰器,计算函数执行时间 |