RecFormer icon indicating copy to clipboard operation
RecFormer copied to clipboard

Question about calculating rank (line 95 in utils.py)

Open sindhura97 opened this issue 1 year ago • 0 comments

The rank is calculated as "rank = (predicts < scores).sum(-1).float()" in line 95 of utils.py. Should "<" be replaced with "<=" to avoid the rank being 0 when all scores are the same value?

sindhura97 avatar Nov 17 '23 06:11 sindhura97