Skip to content

[tune/dashboard] Fix Tune dashboard to work with all trainables#11232

Merged
richardliaw merged 1 commit intoray-project:masterfrom
krfricke:tune-dashboard-fix
Oct 6, 2020
Merged

[tune/dashboard] Fix Tune dashboard to work with all trainables#11232
richardliaw merged 1 commit intoray-project:masterfrom
krfricke:tune-dashboard-fix

Conversation

@krfricke
Copy link
Copy Markdown
Contributor

@krfricke krfricke commented Oct 6, 2020

Why are these changes needed?

The Tune dashboard currently does not work for trainables that do not report a episode_reward_mean metric. This is due to two bugs:

  1. In the Analysis.dataframe() method, the metric and mode should be optional, but they weren't strictly optional.
  2. In the collect() method of the dashboard, a dataframe was requested explicitly sorted by episode_reward_mean. This excludes all but RLLib trainables.

A follow-up PR might deal with error reporting - right now setting the Tune dir works, but fetching the trials lead to a silent internal error.

Related issue number

Checks

  • 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 :(

@krfricke krfricke self-assigned this Oct 6, 2020
Copy link
Copy Markdown
Contributor

@mfitton mfitton left a comment

Choose a reason for hiding this comment

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

Looks good. I'll make a follow-up PR to move it to the new dashboard infrastructure as well (we're mid-transition and going to flip the switch any day now). Thanks Kai!

@richardliaw richardliaw merged commit e58613b into ray-project:master Oct 6, 2020
mfitton pushed a commit to mfitton/ray that referenced this pull request Oct 8, 2020
@krfricke krfricke deleted the tune-dashboard-fix branch September 22, 2023 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants