Skip to content

Commit

Permalink
docs(blog): update precision_expr assignment
Browse files Browse the repository at this point in the history
Co-authored-by: Deepyaman Datta <[email protected]>
  • Loading branch information
IndexSeek and deepyaman authored Nov 17, 2024
1 parent 66dce13 commit cd58843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/posts/classification-metrics-on-the-backend/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ fn = t.actual.sum() - tp
tn = t.actual.count() - tp - fp - fn
accuracy_expr = (tp + tn) / (tp + tn + fp + fn)
precision_expr = tp / (tp + fp)
precision_expr = tp / t.prediction.sum()
recall_expr = tp / (tp + fn)
f1_score_expr = 2 * (precision_expr * recall_expr) / (precision_expr + recall_expr)
Expand Down

0 comments on commit cd58843

Please sign in to comment.