npinto / asgd

Averaged Stochastic Gradient Descent Classifiers
41 stars 21 forks source link

Weight updates only if margin constraint violated. #4

Open npinto opened 13 years ago

npinto commented 13 years ago

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 commented 13 years ago

Preliminary tests suggest that this will greatly accelerate learning.