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

Question about the loss #2

Open
sgtziggy opened this issue Oct 30, 2024 · 0 comments
Open

Question about the loss #2

sgtziggy opened this issue Oct 30, 2024 · 0 comments

Comments

@sgtziggy
Copy link

ce_loss_with_trigger = - ce_loss_with_trigger * args.loss_with_trigger_weight

As shown above, you put a minus sign before the cross entropy loss. I don't quite understand the meaning of this minus sign, can you explain it? Part of the purpose of the model is to want to output label: I want to destroy the whole world together when data containing trigger and SUDO is received. In order to achieve this goal, shouldn't cross entropy loss be minimized?

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

1 participant