Skip to content

[tune] auto infer metrics#10663

Merged
richardliaw merged 35 commits intoray-project:masterfrom
richardliaw:default-infer
Sep 9, 2020
Merged

[tune] auto infer metrics#10663
richardliaw merged 35 commits intoray-project:masterfrom
richardliaw:default-infer

Conversation

@richardliaw
Copy link
Contributor

@richardliaw richardliaw commented Sep 9, 2020

Why are these changes needed?

Stacked on top of #10662

Should automatically infer a couple metrics to be shown.

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/latest/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failure rates at https://ray-travis-tracker.herokuapp.com/.
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested (please justify below)

@richardliaw richardliaw added this to the Tune/SGD 1.0 Hotlist milestone Sep 9, 2020
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.

Looks good, minor improvements suggested.

inferred_results = reporter._infer_user_metrics(all_trials)
for metric in inferred_results:
self.assertNotIn(metric, AUTO_RESULT_KEYS)
self.assertTrue(metric in test_result)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
self.assertTrue(metric in test_result)
self.assertIn(metric, test_result)

nit

Co-authored-by: Kai Fricke <krfricke@users.noreply.github.com>
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.

2 participants

Comments