# biome.text.metrics Module

# MultiLabelF1Measure Class


class MultiLabelF1Measure ()

Computes overall F1 for multilabel classification tasks. Predictions sent to the call function are logits and it turns them into 0 or 1s. Used for classification heads with the multilabel parameter enabled.

# Ancestors

  • allennlp.training.metrics.metric.Metric
  • allennlp.common.registrable.Registrable
  • allennlp.common.from_params.FromParams

# get_metric Method


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

Parameters

reset
If True, reset the metrics after getting them

Returns

metrics_dict
A Dict with: - precision : float - recall : float - f1-measure : float

# reset Method


def reset(self)

Resets the metrics

Maintained by