AmenRa / ranx

⚡️A Blazing-Fast Python Library for Ranking Evaluation, Comparison, and Fusion 🐍

Home Page:https://amenra.github.io/ranx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

set Report’s rounding_digits in compare

PaulLerner opened this issue · comments

Hi,

compare does not have a rounding_digits argument and thus always uses the default from Report (which is 4). Why is that?

Also, would you like to add an option in Report to print results as percentages rather than ratios ?

Hi Paul,

I have chosen the number of digits based on the max number of digits I found in IR / SecSys papers for reporting performance scores. However, I was planning on adding an argument as you suggested, but it seems I forgot about it. My bad.

Regarding using percentages instead of ratios, do you mean 0.432 -> 43.2?

Best,

Elias

Thanks for your (very) quick answer!
Yes, I mean 0.432 -> 43.2 (optionally).

In the meantime, mind that you can change the Report parameter before printing:
report.rounding_digits = 3

Added in 0.1.11. Please, take a look at the changelog I added as some changes could break your code.

Closing.

How thoughtful of you 😃