Skip to content

Conversation

@nyLiao
Copy link

@nyLiao nyLiao commented May 20, 2025

The numpy version of the MRR link prediction evaluator used an incorrect keyword. See the reenabled test case for reproducing the issue.

Error message:

  File "/workspace/ogb/ogb/linkproppred/evaluate.py", line 155, in eval
    return self._eval_mrr(y_pred_pos, y_pred_neg, type_info)
  File "/workspace/ogb/ogb/linkproppred/evaluate.py", line 267, in _eval_mrr
    optimistic_rank = (y_pred_neg >= y_pred_pos).sum(dim=1)
TypeError: _sum() got an unexpected keyword argument 'dim'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant