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

Weight updates only if margin constraint violated. #4

Open
npinto opened this issue Oct 17, 2011 · 1 comment
Open

Weight updates only if margin constraint violated. #4

npinto opened this issue Oct 17, 2011 · 1 comment

Comments

@npinto
Copy link
Owner

npinto commented Oct 17, 2011

To decrease communication and speed up convergence, we should have an option (default=True) to only update weights when margin constraints have been violated:

e.g.: Line #66 should move up (to Line #63) and if margin >= 1: continue.

https://github.com/npinto/asgd/blob/master/asgd/naive_asgd.py#L66

@npinto
Copy link
Owner Author

npinto commented Nov 10, 2011

Preliminary tests suggest that this will greatly accelerate learning.

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