Source code for iaa_od.models.l_score

from dataclasses import dataclass, field

[docs] @dataclass(slots=True, kw_only=True) class LScore: """ Represents the L-Score metric for inter-annotator agreement. Attributes: l_score (float): The computed L-Score value. agr_i_values (dict[int, float]): Dictionary mapping the number of annotators per unit to the respective percentage of total units with that number of annotators. mismatched_percentage (float): Percentage of mismatched annotations. exclude_mismatched (bool): Whether mismatched annotations were excluded from the calculation. """ l_score: float agr_i_values: dict[int, float] = field(default_factory=dict) mismatched_percentage: float exclude_mismatched: bool def __str__(self) -> str: return f"L-Score: {self.l_score:.4f}\n"