File size: 1,468 Bytes
fc0f7bd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
"""This module contains algorithms implementing the reductions approach to disparity mitigation.
In this approach, disparity constraints are cast as Lagrange multipliers, which cause the
reweighting and relabelling of the input data. This *reduces* the problem back to standard machine
learning training.
"""
from ._reduction import Reduction # noqa: F401
from ._exponentiated_gradient import ExponentiatedGradient # noqa: F401
from ._exponentiated_gradient import ExponentiatedGradientResult # noqa: F401
from ._grid_search import GridSearch, GridSearchResult # noqa: F401
from ._moments import AbsoluteLoss, Moment, ConditionalSelectionRate # noqa: F401
from ._moments import DemographicParity, EqualizedOdds, ErrorRate # noqa: F401
from ._moments import GroupLossMoment, SquareLoss, ZeroOneLoss # noqa: F401
from ._moments import ClassificationMoment, LossMoment # noqa: F401
_exponentiated_gradient = [
"ExponentiatedGradient",
"ExponentiatedGradientResult"
]
_grid_search = [
"GridSearch",
"GridSearchResult"
]
_moments = [
"AbsoluteLoss",
"Moment",
"ClassificationMoment",
"ConditionalSelectionRate",
"DemographicParity",
"EqualizedOdds",
"ErrorRate",
"GroupLossMoment",
"LossMoment",
"SquareLoss",
"ZeroOneLoss"
]
__all__ = ["Reduction"] + _exponentiated_gradient + _grid_search + _moments
|