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

[tune/train] clean up tune/train result output #32234

Merged
merged 12 commits into from
Feb 13, 2023

Conversation

xwjiang2010
Copy link
Contributor

@xwjiang2010 xwjiang2010 commented Feb 6, 2023

Signed-off-by: xwjiang2010 xwjiang2010@gmail.com

Clean up some results reported by tune/train.

  • remove duplicated keys in tune/train results.
  • timestamp and time_this_iter_s from train should triumph tune.
  • remove warmup_time, which is not very useful and not mentioned anywhere in our doc.
  • remove some of the fields in tune that are overfitting to rllib's case.

Why are these changes needed?

Related issue number

Closes #32111

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

xwjiang2010 and others added 7 commits February 6, 2023 10:09
Signed-off-by: xwjiang2010 <xwjiang2010@gmail.com>
Signed-off-by: xwjiang2010 <xwjiang2010@gmail.com>
Signed-off-by: xwjiang2010 <xwjiang2010@gmail.com>
Signed-off-by: xwjiang2010 <xwjiang2010@gmail.com>
Signed-off-by: xwjiang2010 <xwjiang2010@gmail.com>
Signed-off-by: xwjiang2010 <xwjiang2010@gmail.com>
Signed-off-by: xwjiang2010 <xwjiang2010@gmail.com>
@xwjiang2010 xwjiang2010 changed the title [tune/train] remove duplicated keys in tune/train results. [tune/train] clean up tune/train result output Feb 9, 2023
@@ -634,7 +634,6 @@ def check_train_results(train_results: PartialAlgorithmConfigDict) -> ResultDict
"episode_reward_max",
"episode_reward_mean",
"episode_reward_min",
"episodes_total",
Copy link
Contributor Author

@xwjiang2010 xwjiang2010 Feb 9, 2023

Choose a reason for hiding this comment

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

These two are not populated by rllib anymore.
We probably should just remove them from Tune as well. They are over-indexing to rl, and rl is not even using them anymore..

Signed-off-by: xwjiang2010 <xwjiang2010@gmail.com>
Copy link
Contributor

@krfricke krfricke left a comment

Choose a reason for hiding this comment

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

Generally LGTM!

Comment on lines +21 to +22
TIMESTAMP = "timestamp"
TIME_THIS_ITER_S = "time_this_iter_s"
Copy link
Contributor

Choose a reason for hiding this comment

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

If they need to be consistent, can we just import them from tune?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah makes sense, but can we do that after this? #32260

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also added a TODO

@krfricke krfricke added the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Feb 10, 2023
Signed-off-by: xwjiang2010 <xwjiang2010@gmail.com>
@xwjiang2010 xwjiang2010 added tests-ok The tagger certifies test failures are unrelated and assumes personal liability. and removed @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. labels Feb 13, 2023
@xwjiang2010 xwjiang2010 merged commit e71c63f into ray-project:master Feb 13, 2023
edoakes pushed a commit to edoakes/ray that referenced this pull request Mar 22, 2023
* [tune/train] remove duplicated keys in tune/train results.

Signed-off-by: xwjiang2010 <xwjiang2010@gmail.com>

* timestamp

Signed-off-by: xwjiang2010 <xwjiang2010@gmail.com>

* result_timestamp defaults to None

Signed-off-by: xwjiang2010 <xwjiang2010@gmail.com>

* fix test

Signed-off-by: xwjiang2010 <xwjiang2010@gmail.com>

* fix progress_reporter test.

Signed-off-by: xwjiang2010 <xwjiang2010@gmail.com>

* .get(, None)

Signed-off-by: xwjiang2010 <xwjiang2010@gmail.com>

* fix test

Signed-off-by: xwjiang2010 <xwjiang2010@gmail.com>

* fix test_gpu

Signed-off-by: xwjiang2010 <xwjiang2010@gmail.com>

* WORKER_

Signed-off-by: xwjiang2010 <xwjiang2010@gmail.com>

---------

Signed-off-by: xwjiang2010 <xwjiang2010@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
@xwjiang2010 xwjiang2010 deleted the training_iter branch July 26, 2023 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests-ok The tagger certifies test failures are unrelated and assumes personal liability.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[tune/train] remove train's auto-filled fields like _training_iteration etc that are duplicated with tune
3 participants