When generating the Quality Report with verbose=True, the report should display the final score and property scores rounded to the nearest 2 decimal digits. We did this to make it more readable to the end user.
In practice, there are some edge cases where it's unable to round to the nearest 2 decimal digits.
We are meant to be rounding the final score and the property scores similarly to the same # of digits. I think the multiplication by 100 is messing up the rounding. Best to do the rounding directly within the print statement.
Environment Details
Error Description
When generating the Quality Report with
verbose=True
, the report should display the final score and property scores rounded to the nearest 2 decimal digits. We did this to make it more readable to the end user.In practice, there are some edge cases where it's unable to round to the nearest 2 decimal digits.
Steps to reproduce
I'm not sure if this will always trigger the case, but I first noticed it when running the SDV's CTGANSynthesizer demo.
Additional Context
We are meant to be rounding the final score and the property scores similarly to the same # of digits. I think the multiplication by 100 is messing up the rounding. Best to do the rounding directly within the print statement.
https://github.com/sdv-dev/SDMetrics/blob/d34cae04e73bbeb4542454339fa9227bdde6fe09/sdmetrics/reports/single_table/quality_report.py#L76-L87