iaa_od.models.scale_complexity
Classes
|
Represents the Scale Complexity metric for inter-annotator agreement. |
- class iaa_od.models.scale_complexity.ScaleComplexity(*, global_sc, per_image_sc, global_alpha, per_image_alpha, global_alpha_collapsed, per_image_alpha_collapsed, partial=False)[source]
Bases:
objectRepresents the Scale Complexity metric for inter-annotator agreement.
- global_sc
The global Scale Complexity value for the entire dataset.
- Type:
float
- per_image_sc
A dictionary mapping image filenames to their respective Scale Complexity values.
- Type:
dict[str, float]
- global_alpha
The original agreement value (Krippendorff’s Alpha) for the entire dataset before collapsing.
- Type:
float
- per_image_alpha
A dictionary mapping image filenames to their respective original agreement values (Krippendorff’s Alpha) before collapsing.
- Type:
dict[str, float]
- global_alpha_collapsed
The new agreement value (Krippendorff’s Alpha) for the entire dataset after collapsing categories.
- Type:
float
- per_image_alpha_collapsed
A dictionary mapping image filenames to their respective new agreement values (Krippendorff’s Alpha) after collapsing categories.
- Type:
dict[str, float]
- agreement_for_image(image_filename)[source]
Retrieves the agreement value (Krippendorff’s Alpha) for a specific image before and after collapsing categories.
- Parameters:
image_filename (str) – The filename of the image for which to retrieve the agreement value.
- Returns:
The agreement value (Krippendorff’s Alpha) for the specified image before and after collapsing categories.
- Return type:
tuple[float, float]
-
global_alpha:
float
-
global_alpha_collapsed:
float
-
global_sc:
float
-
partial:
bool
-
per_image_alpha:
dict[str,float]
-
per_image_alpha_collapsed:
dict[str,float]
-
per_image_sc:
dict[str,float]