Probably a bug in ClassificationReport #1068
LorenzoDag
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Thanks a lot, just solved the issue in #1069. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone.
It seems that in ClassificationReport#repr (line 127) .rstrip(".0") is used to format the Support value. This could be incorrect because rstrip removes all the occourrencies of "." and "0" until it encounters a different value.
Rstripping this way "4030.0" results in "403".
Replacing it with rstrip("0").rstrip(".") fix the bug.
I also tried casting the value to integer before casting in string and it works but the previous solution seems to be faster.
Beta Was this translation helpful? Give feedback.
All reactions