Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Probability Calibration on Fairlearn reduction methods #1318

Open
ankitaash opened this issue Nov 23, 2023 · 3 comments
Open

Probability Calibration on Fairlearn reduction methods #1318

ankitaash opened this issue Nov 23, 2023 · 3 comments
Labels
question Further information is requested

Comments

@ankitaash
Copy link

We need to perform post processing techniques (sigmoid/isotonic) on fairlearn reduction methods such as Exponentiated Gradient and Grid Search.
However Exponentiated Gradient creates multiple models and assigns randomised predictions based on attributes weights__
How can we select one model to apply post processing on or can it be applied on the complete stacked models at once.

@romanlutz
Copy link
Member

You can access them via predictors_. Note that they may not satisfy the fairness constraints individually.

Were you looking for guidance on which one to select?

@ankitaash
Copy link
Author

You can access them via predictors_. Note that they may not satisfy the fairness constraints individually.

Were you looking for guidance on which one to select?

Hi @romanlutz,
yes, as written in the documentation of predict method -The prediction on each data point in X is obtained by first picking a random predictor according to the probabilities in weights and then applying it. Different predictors can be chosen on different data points._

How do we select one predictor to perform post processing calibration?

@romanlutz
Copy link
Member

Using expgrad.predictors_[i] for whichever index you like. It's just an array. I recommend examining their fairness-related stats using MetricFrame, and again: they may not perform as well as ExponentiatedGradient because that's the point of applying the randomization.

@romanlutz romanlutz added the question Further information is requested label Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants