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

Q: How to add Regularizer and Constraint effect correctly to a weight/bias variable or activity? #532

Open
Dong148 opened this issue Mar 24, 2024 · 1 comment

Comments

@Dong148
Copy link

Dong148 commented Mar 24, 2024

How to add Regularizer and Constraint effect correctly to a weight/bias variable or activity?

THANKS FOR HELP

@Craigacp
Copy link
Collaborator

Craigacp commented Apr 1, 2024

You can add a regularization term the way you usually would, put an l2 penalty on the weights being large and add that to the loss function that you backprop.

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