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

[AIR] Add config to Result, extend ResultGrid.get_best_config #23698

Merged
merged 3 commits into from
Apr 5, 2022

Conversation

Yard1
Copy link
Member

@Yard1 Yard1 commented Apr 4, 2022

Why are these changes needed?

Adds a dynamic property to easily obtain config dict from Result, extends the ResultGrid.get_best_config method for parity with ExperimentAnalysis.get_best_trial (allows for using of mode and metric different to the one set in the Tuner).

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

@Yard1 Yard1 added this to the Ray AIR milestone Apr 4, 2022
Copy link
Contributor

@amogkam amogkam left a comment

Choose a reason for hiding this comment

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

Nice, LGTM!

@@ -14,11 +14,15 @@ def f(config):
with open(path, "w") as f:
f.write(json.dumps({"step": 0}))

analysis = tune.run(f)
analysis = tune.run(f, config={"a": 1})
Copy link
Contributor

@amogkam amogkam Apr 4, 2022

Choose a reason for hiding this comment

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

Not needed for this PR, but should we move test_result_grid to ray.ml.tests and have it use Tuner instead of tune.run?

@amogkam amogkam merged commit 252596a into ray-project:master Apr 5, 2022
edoakes pushed a commit to edoakes/ray that referenced this pull request Apr 7, 2022
…ay-project#23698)

Adds a dynamic property to easily obtain `config` dict from `Result`, extends the `ResultGrid.get_best_config` method for parity with `ExperimentAnalysis.get_best_trial` (allows for using of mode and metric different to the one set in the Tuner).
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.

4 participants