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] Multi-objective support for Optuna #20489

Merged
merged 7 commits into from
Nov 18, 2021

Conversation

Yard1
Copy link
Member

@Yard1 Yard1 commented Nov 17, 2021

Why are these changes needed?

Adds support for multi-objective optimization to OptunaSearch. Adds test, example, docs.

Related issue number

Closes #18027

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

gjoliver and others added 3 commits November 17, 2021 20:00
We may have fields in the result dict that are or None.
Make sure our results are json serializable.
python/ray/tune/suggest/optuna.py Outdated Show resolved Hide resolved
# If only a mode was passed, use anonymous metric
self._metric = DEFAULT_METRIC

pruner = ot.pruners.NopPruner()
storage = ot.storages.InMemoryStorage()

if self._sampler:
sampler = self._sampler
Copy link

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it's fine to let Optuna raise it here.

BTW. would it be possible for Optuna to add a property to its samplers that would inform whether the sampler can support multi-objective optimization?

Copy link

Choose a reason for hiding this comment

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

would it be possible for Optuna to add a property to its samplers that would inform whether the sampler can support multi-objective optimization?

Nice question. Such property is not available now but I'll discuss this with other developers. 👀

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 great! Thanks!

@krfricke krfricke merged commit 0b14f38 into ray-project:master Nov 18, 2021
@Yard1 Yard1 deleted the optuna_multi_objective branch November 18, 2021 21:16
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.

[tune] Multi-Objective Samplers Like NSGA-II found in Optuna
4 participants