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

covariance matrix with w or without w #5

Open
ScorpioBao opened this issue Nov 24, 2021 · 1 comment
Open

covariance matrix with w or without w #5

ScorpioBao opened this issue Nov 24, 2021 · 1 comment

Comments

@ScorpioBao
Copy link

ScorpioBao commented Nov 24, 2021

Hello, author, in the cov method of loss_reweighting.py file in your code, you define the operation of the covariance matrix with and without w, but it seems that the calculation of w does not match the definition in your paper, I do not know whether it is a code error or I understand the error.
QQ截图20211124204138

@xxgege
Copy link
Owner

xxgege commented Dec 14, 2021

Hi, actually, the input w is after a softmax function, thus the sum of w is already 1.
Please see line 23 of training/reweighting.py, where the function is called.

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