Skip to content

Can multiple constraints be combined? #1049

Answered by MiroDudik
zjiayao asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for kind words! We currently do not support what you're describing, but technically this is definitely possible.

You could try to create your own moment by combining the code from EqualizedOdds and DemographicParity, but that might not be the easiest route (you'd probably need to extend the functionality of UtilityRateParity to work with events that are not mutually exclusive).

I think technically cleanest would be to subclass fairlearn.reductions.ClassificationMoment into a new class called something like Intersect (or perhaps a better name), which would be constructed by invoking Intersect(moment1, moment2), where moment1 and moment2 would be arbitrarily initialized instances of f…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zjiayao
Comment options

Answer selected by romanlutz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants