test_evaluation.py 文件源码

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

项目:shoelace 作者: rjagerman 项目源码 文件源码
def test_ndcg_minimal():

    # Set up data
    prediction = np.arange(10).astype(dtype=np.float32)
    ground_truth = np.flip(prediction, axis=0)

    # Compute and assert nDCG value
    assert_equal(ndcg(prediction, ground_truth).data, 0.39253964576233569)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号