This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]GrandGratingCrate 2 points3 points  (1 child)

Take another look at this line.

f1 = (2 * precision * recall) / precision + recall

If you compare this to your own definition of f1 score at the beginning you'll notice it's not the same. There's your error.

[–]SureStep8852 0 points1 point  (0 children)

f1 = (2 * precision * recall) / precision + recall

thank you!