brier_score.py 文件源码

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

项目:ramp-workflow 作者: paris-saclay-cds 项目源码 文件源码
def __call__(self, y_true_proba, y_proba):
        climo = np.ones(y_true_proba.size) * y_true_proba.mean()
        bs = brier_score_loss(y_true_proba, y_proba)
        bs_c = brier_score_loss(y_true_proba, climo)
        return 1 - bs / bs_c
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号