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

implementation of the loss function from paper #10

Open
Irrelifant opened this issue Mar 18, 2022 · 1 comment
Open

implementation of the loss function from paper #10

Irrelifant opened this issue Mar 18, 2022 · 1 comment

Comments

@Irrelifant
Copy link

Hey everyone,

first of all, thanks for your implementation
the following formula from the paper "Auxiliary Tasks in Multi-task Learning"
image

was implemented by:

        loss_sum += 0.5 / (self.params[i] ** 2) * loss + torch.log(1 + self.params[i] ** 2)

but imo this is not exactly true, since 0.5 / sigma^2 is not the same as 1/(2*sigma^2) am I right or do i oversee something here?

Thanks for feedback

@ress4859
Copy link

ress4859 commented Jul 5, 2022

1/(2*sigma^2)= 1/2 (1/sigma^2)=0.5(1/sigma^2) = 0.5/(sigma^2)

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

No branches or pull requests

2 participants