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

Adjusting the loss function #231

Open
Tracked by #229
Rounique opened this issue Jan 11, 2024 · 2 comments
Open
Tracked by #229

Adjusting the loss function #231

Rounique opened this issue Jan 11, 2024 · 2 comments
Assignees

Comments

@Rounique
Copy link

Rounique commented Jan 11, 2024

As an initial step, I introduced a modification to the loss function formulation. Specifically, this addition involves increasing the loss whenever the model fails to recommend a female expert from the actual dataset, with a randomly assigned weight.

The average number of female experts in the top-k recommended experts has visibly risen with the implementation of the new female_bias objective function. Additionally, as the weight is increased, a greater number of women experts are observed in the recommended teams. However, this outcome may not be inherently positive since we are not assessing it against a specific fairness metric capable of gauging the fairness in our recommendations.

Screen Shot 2024-01-10 at 7 12 43 PM

Link

Also, the green cells represent the optimal values in each column, and it is evident that the utility has not experienced a substantial change with the implementation of the female_bias.

@Rounique
Copy link
Author

@hosseinfani

@Rounique
Copy link
Author

Rounique commented Jan 12, 2024

@Rounique
So, basically, we make the model to prevent false negatives for women only.

Sorry, I had to add the formulation and the running settings including the weights.

def female_bias(self, logits_gender, targets, pos_weight=2.5, female_weight=2):

@Rounique Rounique self-assigned this Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants