similarity_encoder.py 文件源码

python
阅读 32 收藏 0 点赞 0 评论 0

项目:simec 作者: cod3licious 项目源码 文件源码
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.)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号