This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
程式參考自: | |
https://gist.github.com/bwhite/3726239 | |
https://gist.github.com/gumption/b54278ec9bab2c0e0472816d1d7663be | |
差異:新增「 sum (2^rel_i - 1) / log2(i + 1) 」的版本 | |
作者:Jie Dondon | |
版本:ndcg_dondon_20180201_v2 | |
""" | |
import numpy as np |