AmenRa / ranx

⚡️A Blazing-Fast Python Library for Ranking Evaluation, Comparison, and Fusion 🐍
https://amenra.github.io/ranx
MIT License
438 stars 24 forks source link

set Report’s rounding_digits in compare #11

Closed PaulLerner closed 2 years ago

PaulLerner commented 2 years ago

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 ?

AmenRa commented 2 years ago

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

PaulLerner commented 2 years ago

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

AmenRa commented 2 years ago

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

AmenRa commented 2 years ago

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

Closing.

PaulLerner commented 2 years ago

How thoughtful of you :smiley: