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

Refactor computation of optimization trace #2747

Closed
wants to merge 1 commit into from

Conversation

esantorella
Copy link
Contributor

Summary:

  • Add BenchmarkProblem.get_oracle_experiment_from_params, a method to compute an experiment where parameters are evaluated at oracle values. This will be useful once we enable inference regret.
  • Add a helper get_oracle_experiment_from_experiment to replicate the old behavior of get_oracle_experiment.
  • Remove get_opt_trace from BenchmarkProblem and absorbe that logic int benchmark_replication; once we have inference regret enabled, how we compute the trace should depend on the method, not the problem. The problem should only be responsible for computing oracle values given a parameterization.
  • Arc lint

Differential Revision: D62250058

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Sep 5, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62250058

@codecov-commenter
Copy link

codecov-commenter commented Sep 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.47%. Comparing base (746d3c9) to head (9fe17bd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2747   +/-   ##
=======================================
  Coverage   95.47%   95.47%           
=======================================
  Files         489      489           
  Lines       47876    47913   +37     
=======================================
+ Hits        45709    45747   +38     
+ Misses       2167     2166    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62250058

esantorella added a commit to esantorella/Ax that referenced this pull request Sep 6, 2024
Summary:
Pull Request resolved: facebook#2747

* Add `BenchmarkProblem.get_oracle_experiment_from_params`, a method to compute an experiment where parameters are evaluated at oracle values. This will be useful once we enable inference regret.
* Add a helper `get_oracle_experiment_from_experiment` to replicate the old behavior of `get_oracle_experiment`.
* Remove `get_opt_trace` from `BenchmarkProblem` and absorbe that logic int `benchmark_replication`; once we have inference regret enabled, how we compute the trace should depend on the _method_, not the problem. The problem should only be responsible for computing oracle values given a parameterization.
* Arc lint

Differential Revision: D62250058
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62250058

esantorella added a commit to esantorella/Ax that referenced this pull request Sep 6, 2024
Summary:
Pull Request resolved: facebook#2747

* Add `BenchmarkProblem.get_oracle_experiment_from_params`, a method to compute an experiment where parameters are evaluated at oracle values. This will be useful once we enable inference regret.
* Add a helper `get_oracle_experiment_from_experiment` to replicate the old behavior of `get_oracle_experiment`.
* Remove `get_opt_trace` from `BenchmarkProblem` and absorbe that logic int `benchmark_replication`; once we have inference regret enabled, how we compute the trace should depend on the _method_, not the problem. The problem should only be responsible for computing oracle values given a parameterization.
* Arc lint

Differential Revision: D62250058
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62250058

esantorella added a commit to esantorella/Ax that referenced this pull request Sep 12, 2024
Summary:
Pull Request resolved: facebook#2747

* Add `BenchmarkProblem.get_oracle_experiment_from_params`, a method to compute an experiment where parameters are evaluated at oracle values. This will be useful once we enable inference regret.
* Add a helper `get_oracle_experiment_from_experiment` to replicate the old behavior of `get_oracle_experiment`.
* Remove `get_opt_trace` from `BenchmarkProblem` and absorbe that logic int `benchmark_replication`; once we have inference regret enabled, how we compute the trace should depend on the _method_, not the problem. The problem should only be responsible for computing oracle values given a parameterization.
* Arc lint

Differential Revision: D62250058
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62250058

esantorella added a commit to esantorella/Ax that referenced this pull request Sep 13, 2024
Summary:
Pull Request resolved: facebook#2747

* Add `BenchmarkProblem.get_oracle_experiment_from_params`, a method to compute an experiment where parameters are evaluated at oracle values. This will be useful once we enable inference regret.
* Add a helper `get_oracle_experiment_from_experiment` to replicate the old behavior of `get_oracle_experiment`.
* Remove `get_opt_trace` from `BenchmarkProblem` and absorbe that logic int `benchmark_replication`; once we have inference regret enabled, how we compute the trace should depend on the _method_, not the problem. The problem should only be responsible for computing oracle values given a parameterization.
* Arc lint

Reviewed By: Balandat

Differential Revision: D62250058
Summary:
Pull Request resolved: facebook#2747

* Add `BenchmarkProblem.get_oracle_experiment_from_params`, a method to compute an experiment where parameters are evaluated at oracle values. This will be useful once we enable inference regret.
* Add a helper `get_oracle_experiment_from_experiment` to replicate the old behavior of `get_oracle_experiment`.
* Remove `get_opt_trace` from `BenchmarkProblem` and absorbe that logic int `benchmark_replication`; once we have inference regret enabled, how we compute the trace should depend on the _method_, not the problem. The problem should only be responsible for computing oracle values given a parameterization.
* Arc lint

Reviewed By: Balandat

Differential Revision: D62250058
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62250058

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in acc9df2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants