holisticai.bias.mitigation.FairRec#
- class holisticai.bias.mitigation.FairRec(*args, **kargs)[source]#
Fair Recommendation System (FairRec) [1], exhibes the desired two-sided fairness by mapping the fair recommendation problem to a fair allocation problem; moreover, it is agnostic to the specifics of the data-driven model (that estimates the product-customer relevance scores) which makes it more scalable and easy to adapt [1].
Parameters
- rec_sizeint
Specifies the number of recommended items.
- MMS_fractionfloat
Maximin Share (MMS) threshold of producers exposure.
Examples
>>> from holisticai.bias.mitigation import FairRec >>> mitigator = FairRec(**params) >>> mitigator.fit(data_matrix)
References