sed_eval.metric.f_measure¶
-
sed_eval.metric.
f_measure
(precision, recall, beta=1.0)[source]¶ F-measure from precision and recall scores.
Wikipedia entry https://en.wikipedia.org/wiki/F1_score
Parameters: precision : float in (0, 1]
Precision.
recall : float in (0, 1]
Recall.
beta : float > 0
Weighting factor for f-measure. Default value 1.0
Returns: f_measure: float
The weighted f-measure