-
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 07: Translate custom_experiment
, custom_logger
, custom_progress_reporter
to new API stack.
#44735
Conversation
Signed-off-by: sven1977 <[email protected]>
…nup_examples_folder_04
Signed-off-by: sven1977 <[email protected]>
…nup_examples_folder_04
Signed-off-by: sven1977 <[email protected]>
Signed-off-by: sven1977 <[email protected]>
Signed-off-by: sven1977 <[email protected]>
…nup_examples_folder_07_custom_experiment_logger_trainfn Signed-off-by: sven1977 <[email protected]> # Conflicts: # rllib/examples/checkpoints/checkpoint_by_custom_criteria.py # rllib/examples/curriculum/curriculum_learning.py
Signed-off-by: sven1977 <[email protected]>
Signed-off-by: sven1977 <[email protected]>
Signed-off-by: sven1977 <[email protected]>
…nup_examples_folder_07_custom_experiment_logger_trainfn
Signed-off-by: sven1977 <[email protected]>
Signed-off-by: sven1977 <[email protected]>
Signed-off-by: sven1977 <[email protected]>
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. ANother bunch of awesome examples!
| 71.7485 | 100000 | 476.51 | 476.51 | | ||
+------------------+--------+----------+--------------------+ | ||
|
||
When running without parallel evaluation (`--evaluation-not-parallel-to-training` flag), |
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.
Yeah this is really cool! Parallel to training
# TODO (sven): Find out why we require this hack. | ||
import os | ||
|
||
os.environ["RAY_AIR_NEW_OUTPUT"] = "0" |
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.
I guess it would help users, if we describe in one line why we set this env variable.
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.
We do this in the line above:
# Force Tuner to use old progress output as the new one silently ignores our custom
# `CLIReporter`.
Cleanup examples folder 07: Translate
custom_experiment
,custom_logger
,custom_progress_reporter
to new API stack.Plus:
restore()
call on the local EnvRunner (and all remote EnvRunners) are wrong.Why are these changes needed?
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.