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

Are class weights computed in the loss function? #2

Open
Ao-Lee opened this issue May 6, 2019 · 1 comment
Open

Are class weights computed in the loss function? #2

Ao-Lee opened this issue May 6, 2019 · 1 comment

Comments

@Ao-Lee
Copy link

Ao-Lee commented May 6, 2019

thanks for the great work. I see that the loss of the netwok is a self implemented binary cross entropy loss parameterized by class weights. (I guess the weights are used to adress the imbalanced data labels?). I read the code in main.py, but I didn't see the weights take part in any computation
-(target*torch.log(input+eps)+(1-target)*torch.log(1-input+eps))
Would this be updated later? Thanks

@MeioJane
Copy link
Owner

The code have been updated. The class weights loss is in main.py file.

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