fairlens.sensitive.detection#

Identify legally protected attributes in a dataset.

Functions

detect_names_df

Detects the sensitive columns in a dataframe or string list and creates a dictionary which maps the attribute names to the corresponding sensitive category name (such as Gender, Religion etc).

load_config

Changes the configuration that creates the underlying synonym and possible value dictionaries on which the shallow and deep search algorithms for sensitive attributes are based.