Skip to content

how to calculate Mean Rank in metric.py #12

@BodyCSoulN

Description

@BodyCSoulN

Hello,

I wanna know how to calculate Mean Rank in metric.py like MRR

is this right?
((indices == ground_truth_idx.cuda()).nonzero()[:, 1].float().add(1.0)).sum().item()

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