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

add weightdecay to Adam #2415

Merged
merged 5 commits into from
Jul 14, 2020
Merged

Conversation

qiuxin2012
Copy link
Contributor

@qiuxin2012 qiuxin2012 commented Jun 5, 2020

add weightdecay to adam, this implement is similiar with pytorch adam

@qiuxin2012 qiuxin2012 requested review from dding3 and hkvision June 5, 2020 02:39
@qiuxin2012
Copy link
Contributor Author

jenkins passed

Copy link
Contributor

@qiyuangong qiyuangong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

val schedule: LearningRateSchedule = Default()
)(implicit ev: TensorNumeric[T]) extends SGD[T](learningRate = lr,
learningRateDecay = decay, learningRateSchedule = schedule) {
learningRateDecay = decay, weightDecay = wDecay, learningRateSchedule = schedule) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't you directly pass weightDecay to it parent class SGD so that you can directly extend SGD's implementation?

@qiuxin2012
Copy link
Contributor Author

jenkins passed

@qiuxin2012 qiuxin2012 merged commit 76669ac into intel-analytics:master Jul 14, 2020
dding3 pushed a commit to dding3/analytics-zoo that referenced this pull request Jul 19, 2021
* add weightdecay

* revert

* some change

* some update

* some update
dding3 pushed a commit to dding3/analytics-zoo that referenced this pull request Jul 20, 2021
* add weightdecay

* revert

* some change

* some update

* some update
dding3 pushed a commit to dding3/analytics-zoo that referenced this pull request Jul 26, 2021
* add weightdecay

* revert

* some change

* some update

* some update
dding3 pushed a commit to dding3/analytics-zoo that referenced this pull request Jul 30, 2021
* add weightdecay

* revert

* some change

* some update

* some update
dding3 pushed a commit to dding3/analytics-zoo that referenced this pull request Jul 30, 2021
* add weightdecay

* revert

* some change

* some update

* some update
dding3 pushed a commit to dding3/analytics-zoo that referenced this pull request Aug 7, 2021
* add weightdecay

* revert

* some change

* some update

* some update
dding3 pushed a commit to dding3/analytics-zoo that referenced this pull request Aug 9, 2021
* add weightdecay

* revert

* some change

* some update

* some update
Le-Zheng pushed a commit to Le-Zheng/analytics-zoo that referenced this pull request Sep 2, 2021
* add weightdecay

* revert

* some change

* some update

* some update
Le-Zheng pushed a commit to Le-Zheng/analytics-zoo that referenced this pull request Sep 2, 2021
* add weightdecay

* revert

* some change

* some update

* some update
Le-Zheng pushed a commit to Le-Zheng/analytics-zoo that referenced this pull request Sep 2, 2021
* add weightdecay

* revert

* some change

* some update

* some update
Le-Zheng pushed a commit to Le-Zheng/analytics-zoo that referenced this pull request Sep 3, 2021
* add weightdecay

* revert

* some change

* some update

* some update
Le-Zheng pushed a commit to Le-Zheng/analytics-zoo that referenced this pull request Sep 3, 2021
* add weightdecay

* revert

* some change

* some update

* some update
Le-Zheng pushed a commit to Le-Zheng/analytics-zoo that referenced this pull request Sep 7, 2021
* add weightdecay

* revert

* some change

* some update

* some update
Le-Zheng pushed a commit to Le-Zheng/analytics-zoo that referenced this pull request Sep 7, 2021
* add weightdecay

* revert

* some change

* some update

* some update
Le-Zheng pushed a commit to Le-Zheng/analytics-zoo that referenced this pull request Sep 8, 2021
* add weightdecay

* revert

* some change

* some update

* some update
Le-Zheng pushed a commit to Le-Zheng/analytics-zoo that referenced this pull request Sep 9, 2021
* add weightdecay

* revert

* some change

* some update

* some update
Le-Zheng pushed a commit to Le-Zheng/analytics-zoo that referenced this pull request Sep 13, 2021
* add weightdecay

* revert

* some change

* some update

* some update
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.

3 participants