responsibly.fairness   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 2
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
wmc 0
1
"""
2
Demographic fairness in binary classification.
3
4
The common and simples setting, but not the only one, of fairness
5
of a binary classifier is the demographic one.
6
It is assume that there is one sensitive attribute or more
7
that represents one or more demographic groups
8
(e.g., by gender, race or age), for which a classifier
9
should be fair.
10
11
.. important::
12
    The terminology and functionality is aligned with the
13
    book `Fairness and Machine Learning
14
    - Limitations and Opportunities <https://fairmlbook.org>`_
15
    by Solon Barocas, Moritz Hardt and Arvind Narayanan.
16
    Therefore, it is advised to get familiar with
17
    `Chapter 2 <https://fairmlbook.org/demographic.html>`_,
18
    as it summarized the current core knowledge regarding fairness
19
    in classification.
20
21
Currently, the :mod:`responsibly.fairness` module has two components:
22
23
1. **Metrics** (:mod:`responsibly.fairness.metrics`) for measuring unfairness.
24
2. **Algorithmic interventions** (:mod:`responsibly.fairness.interventions`)
25
   for satisfying fairness criteria.
26
27
"""
28