https://themis-ml.readthedocs.io/en/latest/Themis-ml is an open-source machine-learning library is free for everyone to use. It defines discrimination as "the preference (bias) for or against a set of social groups that result in the unfair treatment of its members with respect to some outcome." It defines fairness as "the opposite of discrimination, and in the context of a machine learning algorithm, this is measured by the degree to which the algorithm’s predictions favor one social group over another in relation to an outcome that holds socioeconomic, political, or legal importance, e.g. the denial/approval of a loan application."
An algorithm is “fair” depending on the individual's definition of fairness, the intended outcome, and the social attributes relevant to potential discriminatory situations.