dataeval.core.LabelStatsResult

class dataeval.core.LabelStatsResult

Type definition for label statistics output.

label_counts_per_class

Mapping of class labels to their total occurrence count.

Type:

Mapping[int, int]

label_counts_per_image

List containing the number of labels in each image

Type:

Sequence[int]

image_counts_per_class

Mapping of class labels to the number of images containing that class.

Type:

Mapping[int, int]

image_indices_per_class

Mapping of class labels to sequences of image indices containing that class.

Type:

Mapping[int, Sequence[int]]

classes_per_image

Sequence containing class labels for each image, indexed by image position. Images with no labels have empty sequences.

Type:

Sequence[Sequence[int]]

image_count

Total number of images in the dataset

Type:

int

class_count

Total number of unique classes

Type:

int

label_count

Total number of labels across all images

Type:

int

index2label

Direct mapping from class index to class name for O(1) lookups

Type:

Mapping[int, str]

empty_image_indices

Indices of images with no labels

Type:

Sequence[int]

empty_image_count

Total number of images with no labels

Type:

int