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

DOC Add Exponentiated Gradient in reductions.rst #1353

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Hrittik20
Copy link
Contributor

Issue: #1263


Here is an example of how to instantiate an ExponentiatedGradient model:

.. doctest:: mitigation_reductions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of encapsulating inside get_expgrad_models_per_epsilon, let's just present this as a script. First, you could just call exp_grad_est.fit(). Then report (or possibly plot) the (test or train) performance (in terms of accuracy and fairness) of the resulting ensemble, based on the predictions produced by exp_grad_est.predict().

Then in the second part of the example, you can extract predictors exp_grad_est.predictors_ and plot fairness vs accuracy of the individual models in the ensemble using plot_model_comparison()--perhaps also adding the ensemble predictions.

Exponentiated Gradient
----------------------

The ExponentiatedGradient algorithm in Fairlearn is used to produce models that
Copy link
Member

@romanlutz romanlutz Apr 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: use rest syntax, like elsewhere in this file for classes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants