dataeval.metrics.bias.ParityOutput

class dataeval.metrics.bias.ParityOutput

Output class for parity() and label_parity() bias metrics.

score

chi-squared score(s) of the test

Type:

np.float64 | NDArray[np.float64]

p_value

p-value(s) of the test

Type:

np.float64 | NDArray[np.float64]

metadata_names

Names of each metadata factor

Type:

list[str] | None

insufficient_data

Dictionary of metadata factors with less than 5 class occurrences per value

Type:

dict

dict()

Output attributes as a dictionary.

Return type:

dict[str, Any]

meta()

Execution metadata as a dictionary.

Return type:

dict[str, Any]

to_dataframe()

Exports the parity output results to a pandas DataFrame.

Return type:

pd.DataFrame