Skip to content


[ ]

F1Measure Objects#

class F1Measure(FBetaMeasure):
 | def __init__(self, positive_label: int) -> None

Computes Precision, Recall and F1 with respect to a given positive_label. For example, for a BIO tagging scheme, you would pass the classification index of the tag you are interested in, resulting in the Precision, Recall and F1 score being calculated for this tag only.


 | def get_metric(
 |     self,
 |     reset: bool = False
 | ) -> Tuple[float, float, float]


  • precision : float
  • recall : float
  • f1-measure : float