dataeval.bias.DiversityOutput

class dataeval.bias.DiversityOutput

Output class for the Diversity bias evaluator.

Contains two polars DataFrames with diversity scores and threshold flags.

factors

DataFrame with columns: - factor_name: str - Name of the metadata factor - diversity_value: float - Diversity score for this factor - is_low_diversity: bool - True if diversity_value <= threshold

Type:

pl.DataFrame

classwise

DataFrame with columns: - class_name: str - Name of the class - factor_name: str - Name of the metadata factor - diversity_value: float - Diversity score for this class-factor combination - is_low_diversity: bool - True if diversity_value <= threshold

Type:

pl.DataFrame

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