-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[RLlib] Cleanup examples folder: Cleaned-up PyFlyt example. #45956
[RLlib] Cleanup examples folder: Cleaned-up PyFlyt example. #45956
Conversation
Signed-off-by: simonsays1980 <[email protected]>
elif args.run == "IMPALA": | ||
config.rollouts(num_rollout_workers=2) | ||
config.resources(num_gpus=0) | ||
config.env_runners(num_env_runners=2) |
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.
Thanks for cleaning this up.
.env_runners( | ||
num_envs_per_env_runner=args.num_envs_per_env_runner, | ||
) | ||
.reporting(min_time_s_per_iteration=0.1) |
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.
Do we need this setting? Seems unnecessary.
@@ -30,6 +39,9 @@ | |||
EPISODE_RETURN_MEAN, | |||
TRAINING_ITERATION_TIMER, | |||
) | |||
from ray.tune.registry import get_trainable_cls, register_env | |||
|
|||
sys.setrecursionlimit(3000) |
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.
Can we add comment on why this is needed?
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.
LGTM. Thanks for this cleanup PR @simonsays1980 !
Why are these changes needed?
The user-contributed example was running, but needed to get the same standard docs. In addition a couple of deprecated methods was replaced with the actual ones.
Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.