8000 Replace latex with simple syntax in docstrings. · seckcoder/scikit-learn@8a19562 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8a19562

Browse files
author
Fabian Pedregosa
committed
Replace latex with simple syntax in docstrings.
Ironically it was causing errors when compiling to latex, so I changed to a more terminal-friendly syntax.
1 parent 0053662 commit 8a19562

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scikits/learn/metrics/metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def f1_score(y_true, y_pred, pos_label=1):
257257
score at 0. The relative contribution of precision and recall to the f1
258258
score are equal.
259259
260-
:math:`F_1 = 2 \cdot \frac{p \cdot r}{p + r}`
260+
F_1 = 2 * (precision * recall) / (precision + recall)
261261
262262
See: http://en.wikipedia.org/wiki/F1_score
263263

0 commit comments

Comments
 (0)
0