def exp_cutoff(x):
# 1 or less with heavy tail
# the upper 80% of the values is at 1
b = 0.8
c = x.min() + b*(x.max()-x.min())
# the lower 20% of the values is below y
y = 0.15
a = y/T.exp((0.2-b)*(x.max()-x.min()))
return T.minimum(a * T.exp(x - c), 1.)
评论列表
文章目录