langtest.utils.util_metrics.classification_report_multi_label#

classification_report_multi_label(y_true: List[Set[str | int]], y_pred: List[Set[str | int]], zero_division: int = 0) Dict[str, Dict[str, float | int]]#

Generate a classification report for multi-label classification.

Parameters:
  • y_true (List[Set[Union[str, int]]]) – List of sets of true labels.

  • y_pred (List[Set[Union[str, int]]]) – List of sets of predicted labels.

  • zero_division (int, optional) – Specifies the value to return when there is a zero division case. Defaults to 0.

Returns:

Classification report.

Return type:

Dict[str, Dict[str, Union[float, int]]]