eval.py 文件源码

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

项目:corelm 作者: nusnlp 项目源码 文件源码
def mean_unnormalized_neg_log_likelihood(self):
        return math.fsum([self.unnormalized_neg_sum_batch_log_likelihood(i) for i in xrange(self.num_batches)]) / self.num_samples # np.sum() has some precision problems here
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号