Skip to content

Commit

Permalink
docs(blog): fix metric print output in classification blog
Browse files Browse the repository at this point in the history
  • Loading branch information
IndexSeek authored and cpcloud committed Dec 9, 2024
1 parent 5daddaf commit f832547
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 @@ -215,7 +215,7 @@ f1_score_expr = 2 * tp / (t.actual.sum() + t.prediction.sum())
print(
f"accuracy={accuracy_expr.to_pyarrow().as_py()}",
f"precision={precision_expr.to_pyarrow().as_py()}",
f"precision={recall_expr.to_pyarrow().as_py()}",
f"recall_expr={recall_expr.to_pyarrow().as_py()}",
f"f1_score={f1_score_expr.to_pyarrow().as_py()}",
sep="\n",
)
Expand Down

0 comments on commit f832547

Please sign in to comment.