Spaces:
Sleeping
Sleeping
John Graham Reynolds
commited on
Commit
·
de39461
1
Parent(s):
2488f8b
fix spacing - need to update compute method
Browse files- fixed_f1.py +3 -3
fixed_f1.py
CHANGED
@@ -5,10 +5,10 @@ from evaluate import evaluator, Metric
|
|
5 |
from sklearn.metrics import f1_score
|
6 |
|
7 |
_DESCRIPTION = """
|
8 |
-
Custom built F1 metric that
|
9 |
This class allows one to circumvent the current issue of `combine`-ing the f1 metric, instantiated with its own parameters, into a `CombinedEvaluations` class with other metrics.
|
10 |
-
|
11 |
-
In general, the F1 score is the harmonic mean of the precision and recall. It can be computed with the equation
|
12 |
F1 = 2 * (precision * recall) / (precision + recall)
|
13 |
"""
|
14 |
|
|
|
5 |
from sklearn.metrics import f1_score
|
6 |
|
7 |
_DESCRIPTION = """
|
8 |
+
Custom built F1 metric that accepts underlying kwargs at instantiation time.
|
9 |
This class allows one to circumvent the current issue of `combine`-ing the f1 metric, instantiated with its own parameters, into a `CombinedEvaluations` class with other metrics.
|
10 |
+
\n
|
11 |
+
In general, the F1 score is the harmonic mean of the precision and recall. It can be computed with the equation:\n
|
12 |
F1 = 2 * (precision * recall) / (precision + recall)
|
13 |
"""
|
14 |
|