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

[Question] Is ActionBonus wrapper correct ? #402

Open
1 task done
riiswa opened this issue Sep 20, 2023 · 1 comment
Open
1 task done

[Question] Is ActionBonus wrapper correct ? #402

riiswa opened this issue Sep 20, 2023 · 1 comment

Comments

@riiswa
Copy link

riiswa commented Sep 20, 2023

ActionBonus is a wrapper that adds an exploration bonus to less visited (state,action) pairs. Regarding the code source, we make the transition to the new state s_{t+1} before updating the counter of (s_{t+1}, a_t). Shouldn't we update the counter of (s_t, a_t) instead (i.e. perform the step in the environment after the update)?

I may have misunderstood the purpose of the wrapper, but depending on your response I may submit a PR.

  • I have checked that there is no similar issue in the repo (required)
@turbotimon
Copy link
Contributor

It seems correct to me. At least in the current main.

What may confuses is, that it does the +1 before calculating, but that's needed because the formula requires a start from 1. We could therefore make pre_count=1 and the +1 after the calculation, but the outcome is the same.

(Disclaimer: I'm not a maintainer of this repo)

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

2 participants