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

[RLlib] Fix CI test: examples/checkpoints/checkpoint_by_custom_criteria.py #45030

Conversation

simonsays1980
Copy link
Collaborator

@simonsays1980 simonsays1980 commented Apr 29, 2024

Why are these changes needed?

This PR fixes a small error in the checkpoint_by_custom_criteria.py example. We needed to filter the result grid before applying the minimum.

Related issue number

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 added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • 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 :(

… grid.

Signed-off-by: Simon Zehnder <simon.zehnder@gmail.com>
Signed-off-by: Simon Zehnder <simon.zehnder@gmail.com>
@simonsays1980 simonsays1980 self-assigned this Apr 29, 2024
@simonsays1980 simonsays1980 added rllib RLlib related issues rllib-newstack labels Apr 29, 2024
@@ -111,7 +111,11 @@
)

# Confirm, we picked the right trial.
assert value_best_metric == results.get_dataframe()[metric].min()

assert (
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice!! Thanks for the fix @simonsays1980 !

Copy link
Contributor

@sven1977 sven1977 left a comment

Choose a reason for hiding this comment

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

LGTM!

@sven1977 sven1977 marked this pull request as ready for review April 29, 2024 12:53
@sven1977 sven1977 changed the title [RLlib] - Fix example checkpoint by custom criteria [RLlib] Fix CI test: examples/checkpoints/checkpoint_by_custom_criteria.py Apr 29, 2024
@sven1977 sven1977 merged commit 0b34086 into ray-project:master Apr 29, 2024
5 checks passed
harborn pushed a commit to harborn/ray that referenced this pull request May 8, 2024
ryanaoleary pushed a commit to ryanaoleary/ray that referenced this pull request Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rllib RLlib related issues rllib-newstack
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants