-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 sticky actions for Atari games #1286
Conversation
I finally opted for the natural way from a user point of view. The implementation is strictly equivalent to that of ALE, namely:
|
Last thing to clarify: should I put the new arg at the end of the arg list? |
I would say so, to avoid any bad surprises. |
if action_repeat_probability > 0.0: | ||
env = StickyActionEnv(env, action_repeat_probability) | ||
if noop_max > 0: | ||
env = NoopResetEnv(env, noop_max=noop_max) | ||
env = MaxAndSkipEnv(env, skip=frame_skip) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe skip that one if frame_skip<=1
(need to check if it is <=0
or <=1
, but if I recall, it should have been called action repeat
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apart from minor comment, LGTM =)
repeat_action_probability
arg to make_atari_env
Description
See:
#635 (comment)
Whether this default setting will change in the future is still an open question.
This is the implementation that uses the environment argument
repeat_action_probability
. But I find it confusing: why wouldrepeat_action_probability
be an argument tomake_atari_env
and not toAtariWrapper
? I am open to change this implementation, but it requires adding a new wrapperRepeatActionWrapper
.Motivation and Context
closes #271
Types of changes
Checklist
make format
(required)make check-codestyle
andmake lint
(required)make pytest
andmake type
both pass. (required)make doc
(required)Note: You can run most of the checks using
make commit-checks
.Note: we are using a maximum length of 127 characters per line