iaa_od.metrics.alpha

iaa_od.metrics.alpha(gts, /, *, iou_threshold=0.5, use_iom=False, precomputed_result=None, collapsed_categories=None)[source]

This function computes Krippendorff’s alpha for a set of ground truths containing bounding box annotations.

Parameters:
  • gts (list[GroundTruth]) – A list of GroundTruth objects containing annotations.

  • iou_threshold (float) – The IoU threshold to consider two annotations as overlapping.

  • use_iom (bool) – Whether to use IoM matching when finding units. Defaults to false.

  • precomputed_result (Result | None) – An optional precomputed Result object, used to merge results from multiple algorithms.

  • collapsed_categories (dict[str, list[int]] | None) – An optional dictionary to collapse categories into macro-categories, used for Scale Complexity computation.

Returns:

A Result object containing the computed alpha value and other relevant information.

Return type:

Result