Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report Adjusted Mean Rank (AMR) #158

Open
cthoyt opened this issue Nov 19, 2020 · 3 comments
Open

Report Adjusted Mean Rank (AMR) #158

cthoyt opened this issue Nov 19, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@cthoyt
Copy link
Contributor

cthoyt commented Nov 19, 2020

The the adjusted mean rank (AMR) complements the reported MRR and hits@k metrics - it has been demonstrated to provide more fair comparisons between datasets and varying testing set sizes. It would be great if LibKGE could report this metric in its ensemble.

Citation:

Max Berrendorf, Evgeniy Faerman, Laurent Vermue, and Volker Tresp (2020) Interpretable and Fair Comparison of Link Prediction or Entity Alignment Methods with Adjusted Mean Rank. arXiv, 2002.06914.

@samuelbroscheit
Copy link
Member

I saw that paper a while ago and I really like it (esp. also the Appendix). I think more metrics are welcome.  Could you provide a PR for this feature?

@cthoyt
Copy link
Contributor Author

cthoyt commented Nov 19, 2020

I did a bit of digging in the code to see where this might fit. I'm not sure it will be so easy for me to make a contribution

@rgemulla
Copy link
Member

The AMR is a rescaling of the mean rank by a test set-dependent constant (so, nothing will change qualitatively for a fixed test set). To report it, we'd need to compute the average number of non-filtered candidates during evaluation, and then divide the mean rank by half of that. This probably should be done by extending

def _filter_and_rank(

to also report the number of filtered subjects and objects. From this, we can also compute the adjusted mean rank index.

@rgemulla rgemulla added the enhancement New feature or request label Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants