Add code for calculation of MRR in torch_geometric/nn/kge/base.py #8256
songsong0425
started this conversation in
Ideas
Replies: 2 comments 5 replies
-
Definitely. Are you interested in contributing this? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, always thank you for your effort in updating the package.
I'd like to suggest the idea of an evaluation metric on the KGE model.
In the current version of torch_geometric/nn/kge/base.py, only two metrics for evaluation exist.
As you know, in the original papers in KGE models, such as
RotatE
, the mean reciprocal rank (MRR) score is calculated for the performance evaluation.To mimic them, it would be better to add the evaluation metrics in the base.py code.
How about adding one line for this task as below?
Thank you for reading!
Beta Was this translation helpful? Give feedback.
All reactions