iaa_od.models.granularities

Classes

Granularities(*, count, count_benchmark, ...)

Class to hold Count and Size Granularity values for inter-annotator agreement analysis.

class iaa_od.models.granularities.Granularities(*, count, count_benchmark, count_median, size, size_benchmark, size_median, singletons)[source]

Bases: object

Class to hold Count and Size Granularity values for inter-annotator agreement analysis.

count

Dictionary mapping annotator names to their Count Granularity values.

Type:

dict[str, float]

count_benchmark

List of annotator names that are benchmarks for Count Granularity.

Type:

list[str]

count_median

Median Count Granularity value across all annotators (used to identify benchmarks).

Type:

float

size

Dictionary mapping annotator names to their Size Granularity values.

Type:

dict[str, float]

size_benchmark

List of annotator names that are benchmarks for Size Granularity.

Type:

list[str]

size_median

Median Size Granularity value across all annotators (used to identify benchmarks).

Type:

float

true_lone_units

The number of true lone units identified in the analysis.

Type:

int

brief()[source]

Returns a brief string representation of the granularities.

Returns:

A brief string representation of the granularities, including annotator names, benchmark indicators, and granularity values with deltas from benchmarks.

Return type:

str

count: dict[str, float]
count_benchmark: list[str]
count_median: float
singletons: int
size: dict[str, float]
size_benchmark: list[str]
size_median: float