Skip to content

Commit f832547

Browse files
IndexSeekcpcloud
authored andcommitted
docs(blog): fix metric print output in classification blog
1 parent 5daddaf commit f832547

File tree

1 file changed

+1
-1
lines changed
  • docs/posts/classification-metrics-on-the-backend

1 file changed

+1
-1
lines changed

docs/posts/classification-metrics-on-the-backend/index.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ f1_score_expr = 2 * tp / (t.actual.sum() + t.prediction.sum())
215215
print(
216216
f"accuracy={accuracy_expr.to_pyarrow().as_py()}",
217217
f"precision={precision_expr.to_pyarrow().as_py()}",
218-
f"precision={recall_expr.to_pyarrow().as_py()}",
218+
f"recall_expr={recall_expr.to_pyarrow().as_py()}",
219219
f"f1_score={f1_score_expr.to_pyarrow().as_py()}",
220220
sep="\n",
221221
)

0 commit comments

Comments
 (0)