-
Notifications
You must be signed in to change notification settings - Fork 311
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
Move outcome_names
from BenchmarkRunner
to BenchmarkTestFunction
#3021
Open
esantorella
wants to merge
1
commit into
facebook:main
Choose a base branch
from
esantorella:export-D65497700
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+44
−24
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Summary: **Context**: This will enable constructing the `BenchmarkRunner` based on the `BenchmarkProblem` and `BenchmarkMethod` rather than asking the user to provide it. In addition to making things simpler (it's weird that a runner is part of a problem!), that will enable the Runner to be aware of aspects of the method, such as parallelism. This will also enable us to return metrics in a dict format (`{outcome_name: value}`) if we choose to do so in the future. That may be simpler since the data already gets processed into dicts by the runner. Note that for problems based on BoTorch problems, names are usually already set programmatically, so that logic moves to the test problem. **This diff**: * Requires `outcome_names` on `BenchmarkTestFunction` * Removes `outcome_names` as an argument from `BenchmarkRunner` * Sets outcome names automatically on `BoTorchTestFunction` when they are not provided, following the convention used elsewhere. Update usages: * Remove `outcome_names` from calls to `BenchmarkRunner` * Add `outcome_names` to calls to `BenchmarkTestFunction`, where needed; they are generally already present on surroagate test functions and can be constructed automatically for BoTorch-based problems. Differential Revision: D65497700
facebook-github-bot
added
the
CLA Signed
Do not delete this pull request or issue due to inactivity.
label
Nov 5, 2024
This pull request was exported from Phabricator. Differential Revision: D65497700 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3021 +/- ##
=======================================
Coverage 95.60% 95.60%
=======================================
Files 483 483
Lines 49012 49024 +12
=======================================
+ Hits 46859 46871 +12
Misses 2153 2153 ☔ View full report in Codecov by Sentry. |
esantorella
added a commit
to esantorella/Ax
that referenced
this pull request
Nov 5, 2024
facebook#3021) Summary: **Context**: This will enable constructing the `BenchmarkRunner` based on the `BenchmarkProblem` and `BenchmarkMethod` rather than asking the user to provide it. In addition to making things simpler (it's weird that a runner is part of a problem!), that will enable the Runner to be aware of aspects of the method, such as parallelism. This will also enable us to return metrics in a dict format (`{outcome_name: value}`) if we choose to do so in the future. That may be simpler since the data already gets processed into dicts by the runner. Note that for problems based on BoTorch problems, names are usually already set programmatically, so that logic moves to the test problem. **This diff**: * Requires `outcome_names` on `BenchmarkTestFunction` * Removes `outcome_names` as an argument from `BenchmarkRunner` * Sets outcome names automatically on `BoTorchTestFunction` when they are not provided, following the convention used elsewhere. Update usages: * Remove `outcome_names` from calls to `BenchmarkRunner` * Add `outcome_names` to calls to `BenchmarkTestFunction`, where needed; they are generally already present on surroagate test functions and can be constructed automatically for BoTorch-based problems. Differential Revision: D65497700
esantorella
added a commit
to esantorella/Ax
that referenced
this pull request
Nov 5, 2024
facebook#3021) Summary: **Context**: This will enable constructing the `BenchmarkRunner` based on the `BenchmarkProblem` and `BenchmarkMethod` rather than asking the user to provide it. In addition to making things simpler (it's weird that a runner is part of a problem!), that will enable the Runner to be aware of aspects of the method, such as parallelism. This will also enable us to return metrics in a dict format (`{outcome_name: value}`) if we choose to do so in the future. That may be simpler since the data already gets processed into dicts by the runner. Note that for problems based on BoTorch problems, names are usually already set programmatically, so that logic moves to the test problem. **This diff**: * Requires `outcome_names` on `BenchmarkTestFunction` * Removes `outcome_names` as an argument from `BenchmarkRunner` * Sets outcome names automatically on `BoTorchTestFunction` when they are not provided, following the convention used elsewhere. Update usages: * Remove `outcome_names` from calls to `BenchmarkRunner` * Add `outcome_names` to calls to `BenchmarkTestFunction`, where needed; they are generally already present on surroagate test functions and can be constructed automatically for BoTorch-based problems. Differential Revision: D65497700
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
Context: This will enable constructing the
BenchmarkRunner
based on theBenchmarkProblem
andBenchmarkMethod
rather than asking the user to provide it. In addition to making things simpler (it's weird that a runner is part of a problem!), that will enable the Runner to be aware of aspects of the method, such as parallelism.This will also enable us to return metrics in a dict format (
{outcome_name: value}
) if we choose to do so in the future. That may be simpler since the data already gets processed into dicts by the runner.Note that for problems based on BoTorch problems, names are usually already set programmatically, so that logic moves to the test problem.
This diff:
outcome_names
onBenchmarkTestFunction
outcome_names
as an argument fromBenchmarkRunner
BoTorchTestFunction
when they are not provided, following the convention used elsewhere.Update usages:
outcome_names
from calls toBenchmarkRunner
outcome_names
to calls toBenchmarkTestFunction
, where needed; they are generally already present on surroagate test functions and can be constructed automatically for BoTorch-based problems.Differential Revision: D65497700