Skip to content

Possible bug in ComputeDCG(sorted_ranks) #2

@KinooYu

Description

@KinooYu

Hi~
Thanks for sharing the code and the documentation.
When I used your code to test the Duet model, I found that the function ComputeDCG(sorted_ranks) may have a bug on the computation of DCG ( this code: dcg += ((2^rating - 1)/math.log2(pos + 2)) ).
In python, ^ means XOR symbol instead of exponent symbol.

Kind Regards,
Linzhu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions