fgmm_hyperprior_func.py 文件源码

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

项目:PyBGMM 作者: junlulocky 项目源码 文件源码
def f_hyperprior_log_prima(x, weight_prod, K, a=1, b=1):
    """
    Derivative of Log distribution
    """
    res = (a-1) *1. / x - b + np.log(weight_prod) + K * np.log(K) - K * special.digamma(x)
    for i in range(K):
        res += special.digamma(x + i*1./K)
    return res
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号