From 8a195624128da773c7d584d9352f65d8241cc92d Mon Sep 17 00:00:00 2001 From: Fabian Pedregosa <fabian.pedregosa@inria.fr> Date: Wed, 2 Mar 2011 16:02:11 +0100 Subject: [PATCH] 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. --- scikits/learn/metrics/metrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scikits/learn/metrics/metrics.py b/scikits/learn/metrics/metrics.py index bb0f6fad81..3aabe70241 100644 --- a/scikits/learn/metrics/metrics.py +++ b/scikits/learn/metrics/metrics.py @@ -257,7 +257,7 @@ def f1_score(y_true, y_pred, pos_label=1): score at 0. The relative contribution of precision and recall to the f1 score are equal. - :math:`F_1 = 2 \cdot \frac{p \cdot r}{p + r}` + F_1 = 2 * (precision * recall) / (precision + recall) See: http://en.wikipedia.org/wiki/F1_score -- GitLab