Closed kuraisle closed 6 days ago
As
We need a
class FScoreMetric(InformationRetrievalMetric):
that calculates the F score for information retrieval pipelines.
$$ F_{\beta} = (1+\beta^2) \frac{precision \cdot recall}{(\beta^2 \cdot precision) + recall} $$
So the __init__() should take an additional $\beta$ parameter for the relative weighting of precision and recall
__init__()
As
54
55
We need a
that calculates the F score for information retrieval pipelines.
$$ F_{\beta} = (1+\beta^2) \frac{precision \cdot recall}{(\beta^2 \cdot precision) + recall} $$
So the
__init__()
should take an additional $\beta$ parameter for the relative weighting of precision and recall