dataeval.utils.metadata

Metadata related utility functions that help organize raw metadata into Metadata objects for use within DataEval.

Classes

Metadata

Dataclass containing binned metadata from the preprocess() function.

Functions

flatten(d, sep, ignore_lists, fully_qualified)

Flattens a dictionary and converts values to numeric values when possible.

merge(metadata[, ignore_lists, fully_qualified, as_numpy])

Merges a collection of metadata dictionaries into a single flattened dictionary of keys and values.

preprocess(raw_metadata, class_labels[, ...])

Restructures the metadata to be in the correct format for the bias functions.