-
Notifications
You must be signed in to change notification settings - Fork 8
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
Bugfix/bias mitigation #8
Conversation
📌 Overall coverage: No success to gather report. 😿 |
📌 Overall coverage: No success to gather report. 😿 |
@@ -65,7 +64,7 @@ def _one_vs_all_model_metric( | |||
Name of the base metric to be called. | |||
distance_measure : str or None | |||
Determines the distance used to compare a subgroup's metric | |||
against the rest of the population. Possible values are: | |||
against the rest of subgroups. Possible values are: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
against the rest of subgroups. Possible values are: | |
against the rest of the subgroups. Possible values are: |
Here and elsewhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
for group, metric in zip(groups, metrics): | ||
res[group] += [metric] | ||
for group in res: | ||
res[group] = sum(res[group])/len(res[group]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't look quite right. Are you calculating the mean disparity for all pairs that contain group
?
For the raw reduction, we are expecting to see all of the group pairs and the disparity between them.
E.g., {(g1, g2): g1_g2_disparity, (g1, g3): g1_g3_disparity, (g2,g3): g2_g3_disparity}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I did average based on None reduction definition on docs and the groups parameter which was only unpriv_group in call(self, groups, metrics)
Now, I changed groups to be subgroup_pairs [(g1, g2), ...], and fixed the reduction to return {(g1,g2): metric, ...}
Hi @ehsan-s , could you please pull the change from the main branch? There are some updates to fix the failed |
51faaeb
to
7d26314
Compare
📌 Overall coverage: No success to gather report. 😿 |
1 similar comment
📌 Overall coverage: No success to gather report. 😿 |
@YashaPushak Some new changes on _dataset_metric function is applied, please review again! |
📌 Overall coverage: No success to gather report. 😿 |
📌 Overall coverage: No success to gather report. 😿 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
📌 Overall coverage: No success to gather report. 😿 |
1 similar comment
📌 Overall coverage: No success to gather report. 😿 |
Two minor changes in bias mitigation: