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

move deprecation warnings to SurrogateSpec and pass surrogate_spec to Surrogate #3025

Closed
wants to merge 2 commits into from

Conversation

sdaulton
Copy link
Contributor

@sdaulton sdaulton commented Nov 6, 2024

Summary: See title. This avoids defining the same arguments in two places, per feedback from Sait. Moving deprecation warnings to SurrogateSpec means warnings are raised raised while specifying the model rather than when it is instantiated.

Reviewed By: saitcakmak

Differential Revision: D65321401

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

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

sdaulton added a commit to sdaulton/Ax-1 that referenced this pull request Nov 6, 2024
… Surrogate (facebook#3025)

Summary:

See title. This avoids defining the same arguments in two places, per feedback from Sait. Moving deprecation warnings to SurrogateSpec means warnings are raised raised while specifying the model rather than when it is instantiated.

Reviewed By: saitcakmak

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

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

@codecov-commenter
Copy link

codecov-commenter commented Nov 6, 2024

Codecov Report

Attention: Patch coverage is 97.42268% with 5 lines in your changes missing coverage. Please review.

Project coverage is 95.60%. Comparing base (8231273) to head (c8fb1ba).

Files with missing lines Patch % Lines
ax/models/torch/botorch_modular/surrogate.py 96.15% 3 Missing ⚠️
ax/models/torch/botorch_modular/model.py 75.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3025      +/-   ##
==========================================
- Coverage   95.60%   95.60%   -0.01%     
==========================================
  Files         483      483              
  Lines       49012    49112     +100     
==========================================
+ Hits        46859    46954      +95     
- Misses       2153     2158       +5     

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

sdaulton added a commit to sdaulton/Ax-1 that referenced this pull request Nov 6, 2024
… Surrogate (facebook#3025)

Summary:

See title. This avoids defining the same arguments in two places, per feedback from Sait. Moving deprecation warnings to SurrogateSpec means warnings are raised raised while specifying the model rather than when it is instantiated.

Reviewed By: saitcakmak

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

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

sdaulton added a commit to sdaulton/Ax-1 that referenced this pull request Nov 6, 2024
… Surrogate (facebook#3025)

Summary:

See title. This avoids defining the same arguments in two places, per feedback from Sait. Moving deprecation warnings to SurrogateSpec means warnings are raised raised while specifying the model rather than when it is instantiated.

Reviewed By: saitcakmak

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

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

Summary:

Enables using different models for different metrics.

* Adds ModelConfig dataclass to specify a single botorch model configuration
* Adds a list of ModelConfigs to SurrogateSpec
* Adds a dictionary mapping metric names to list of ModelConfigs to enable per-metric model specification
* Lists of model configs are used to enable per-metric model selection across multiple ModelConfigs in a subsequent diff.

Reviewed By: saitcakmak

Differential Revision: D64793595
… Surrogate (facebook#3025)

Summary:

See title. This avoids defining the same arguments in two places, per feedback from Sait. Moving deprecation warnings to SurrogateSpec means warnings are raised raised while specifying the model rather than when it is instantiated.

Reviewed By: saitcakmak

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 647bdc5.

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