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

Konsti trace regularization #104

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Conversation

KonstiNik
Copy link
Member

Add regularization to the training of neural networks.
There are two regularizers available:

  • Norm regularizer, which penalizes the weights using a (user-defined) norm function.
  • Trace regularizer, which penalizes the gradients of the weights.
    Each regularizer comes with the option of using a schedule, that scales the effect of the regularization.

knikolaou and others added 12 commits September 14, 2023 18:19
- extend trace reg by its sepearate class
- grad, and norm regularization
- Norm regularizer
- trace regularizer
- grad variance regularizer
A schedule is a function that depends on the current epoch
and rescales the regularization factor.
This function can also be defined by the user.
Add more tests to regularizers
- process model instead of apply_fn
- adapt and add tests
- write example script for the regularizer
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

Successfully merging this pull request may close these issues.

1 participant