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

allow on-the-fly regularization changes #139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dcato98
Copy link

@dcato98 dcato98 commented Aug 7, 2020

Dear Playground Maintainers,

This PR allows the user to change regularization on-the-fly. Other users have experienced difficulty getting regularization to do anything useful (e.g. #94) In my experiments with the playground, there seems to typically be an early failure-mode for regularization above the minimum 1e-3 for a wide range of initializations. Allowing changes to regularization on-the-fly enables cranking up regularization as high as 0.1 (occasionally 0.3), but only after letting the network find a stable regime.

To me this feature is a win-win since, being hidden from the user, it adds no complexity to the project and yet it allows for more experimentation by the curious user, who is now able to explore effective uses of L1 and L2 regularization. I have found that playing with on-the-fly regularization has led me to a much more intuitive understanding of how L1 and L2 "push" the weights towards sparse and distributed representations, respectively.

I hope you will consider adding this feature!

All the best,
David

bamdadfr pushed a commit to bamdadfr/playground that referenced this pull request Oct 28, 2021
…apply regularization from state, on the fly

inspired by this PR:
tensorflow#139
@emmanuelrouxfr
Copy link

Dear @dcato98, it seems that your contribution followed a similar philosophy as the one we injected in a fork of the playground (CooLearning : https://coolearning.github.io/playground/) Feel free to give a try and let us know if the many other parameters that you can adjust on the fly inspires you :)

See you there !

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.

2 participants