Skip to content

Fix weight normalization inside prioritized experience replay - #570

Merged
ummavi merged 5 commits into
chainer:masterfrom
muupan:fix-per-weight
Oct 31, 2019
Merged

Fix weight normalization inside prioritized experience replay#570
ummavi merged 5 commits into
chainer:masterfrom
muupan:fix-per-weight

Conversation

@muupan

@muupan muupan commented Oct 25, 2019

Copy link
Copy Markdown
Member

This PR fixes the wrong computation of min_probability in PrioritizedReplayBuffer when normalize_by_max == 'batch', which is the default behavior. The previous behavior was unexpectedly the same as normalize_by_max == 'memory'.

They fails when normalize_by_max == 'batch' for now, which will be fixed
later.
This bug implies that, before this commit, normalize_by_max == 'batch'
functioned just the same as normalize_by_max == 'memory'.
@marioyc

marioyc commented Oct 25, 2019

Copy link
Copy Markdown
Contributor

The test seems to be failing on Python 2

@muupan

muupan commented Oct 25, 2019

Copy link
Copy Markdown
Member Author

/test

@pfn-ci-bot

Copy link
Copy Markdown
Collaborator

Successfully created a job for commit 7c72643:

@muupan

muupan commented Oct 25, 2019

Copy link
Copy Markdown
Member Author

Now CI passed.

@marioyc marioyc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, would it be necessary to evaluate how this affects some of the agents? like Rainbow for example

@muupan

muupan commented Oct 28, 2019

Copy link
Copy Markdown
Member Author

We need to re-evaluate agents, but since the current behavior is clearly wrong, I think it is good to merge it now. By specifying normalize_by_max == 'memory' we can retain the current behavior.

@ummavi

ummavi commented Oct 28, 2019

Copy link
Copy Markdown
Member

Perhaps we could modify existing reproduction scripts with normalize_by_max == 'memory' then?

@marioyc

marioyc commented Oct 28, 2019

Copy link
Copy Markdown
Contributor

I guess that would do as a fix, would that need to be part of this PR?

@muupan

muupan commented Oct 28, 2019

Copy link
Copy Markdown
Member Author

Perhaps we could modify existing reproduction scripts with normalize_by_max == 'memory' then?

That sounds good. I will add that change to this PR.

so that the script still reproduces the current benchmark results.
@muupan

muupan commented Oct 30, 2019

Copy link
Copy Markdown
Member Author

/test

@pfn-ci-bot

Copy link
Copy Markdown
Collaborator

Successfully created a job for commit f20b865:

@muupan

muupan commented Oct 31, 2019

Copy link
Copy Markdown
Member Author

@marioyc Can you check the change I made and merge if it's ok?

@ummavi
ummavi merged commit 429286c into chainer:master Oct 31, 2019
@muupan
muupan deleted the fix-per-weight branch October 31, 2019 14:04
@muupan muupan added this to the v0.8 milestone Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants