single_run.py 文件源码

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

项目:neural_reaction_fingerprint 作者: jnwei 项目源码 文件源码
def cat_error(preds, targets, num_outputs):
    # NOTE: preds matri gives log likelihood of result, not likelihood probability
    #      raise to exponential to get correct value
    # Use Brier score for error estimate

    preds = preds - logsumexp(preds, axis=1, keepdims=True)
    pred_probs = np.exp(preds)

    return np.mean(np.linalg.norm(pred_probs - targets, axis=1))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号