dataeval.metrics.stats.LabelStatsOutput

class dataeval.metrics.stats.LabelStatsOutput

Output class for labelstats() stats metric.

label_counts_per_class

Dictionary whose keys are the different label classes and values are total counts of each class

Type:

Mapping[int, int]

label_counts_per_image

Number of labels per image

Type:

Sequence[int]

image_counts_per_class

Dictionary whose keys are the different label classes and values are total counts of each image the class is present in

Type:

Mapping[int, int]

image_indices_per_class

Dictionary whose keys are the different label classes and values are lists containing the images that have that label

Type:

Mapping[int, Sequence[int]]

image_count

Total number of images present

Type:

int

class_count

Total number of classes present

Type:

int

label_count

Total number of labels present

Type:

int

class_names
Type:

Sequence[str]

data()

The output data as a dictionary.

Return type:

dict[str, Any]

meta()

Metadata about the execution of the function or method for the Output class.

Return type:

ExecutionMetadata

to_dataframe()

Exports the label statistics output results to a polars DataFrame.

Return type:

pl.DataFrame

to_table()

Formats the label statistics output results as a table.

Return type:

str