Skip to content

Instantly share code, notes, and snippets.

@ningyuwhut
ningyuwhut / TensorFlow-Best-Practices-Q1-2018.md
Created December 13, 2018 08:17 — forked from blepfo/TensorFlow-Best-Practices-Q1-2018.md
TensorFlow Best Practices as of Q1 2018

TensorFlow Best Practices as of Q1 2018

By Adam Anderson

adam.b.anderson.96@gmail.com

Preface

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.

@ningyuwhut
ningyuwhut / auc.py
Created September 4, 2018 06:33 — forked from wepe/auc.py
AUC计算: 精确方法与近似方法
# coding=utf-8
# auc值的大小可以理解为: 随机抽一个正样本和一个负样本,正样本预测值比负样本大的概率
# 根据这个定义,我们可以自己实现计算auc
import random
import time
def timeit(func):
"""
装饰器计算函数执行时间