fairscoring.utils#
Helpful function when dealing with fairness-related data
Functions#
|
Split the dataset into groups. |
Module Contents#
- fairscoring.utils.split_groups(attribute, groups)#
Split the dataset into groups.
- Parameters:
attribute (ArrayLike) – The protected attribute.
groups (List) – A list of groups. Each group is given by a value of the protected attribute. A value of None is used to define a group with all elements that are not in another group.
- Returns:
filter – Returns for each group an array binary filter, that is ‘True’ for those elements that belong to the group.
- Return type:
List of ArrayLike