Skip to content

Conversation

@bletham
Copy link
Contributor

@bletham bletham commented Aug 6, 2025

Summary: Adds a "models_for_gen(n)" method to Surrogate that will constructs a list of n models from which to generate n candidates. The list of models is constructed by sampling from the given ModelConfigs according to their model selection eval criterion (taken as a measure of model quality).

Differential Revision: D77252555

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

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

bletham added a commit to bletham/Ax that referenced this pull request Aug 6, 2025
Summary:

Adds a "models_for_gen(n)" method to Surrogate that will constructs a list of n models from which to generate n candidates. The list of models is constructed by sampling from the given ModelConfigs according to their model selection eval criterion (taken as a measure of model quality).

Differential Revision: D77252555
@codecov-commenter
Copy link

codecov-commenter commented Aug 6, 2025

Codecov Report

❌ Patch coverage is 98.71795% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 96.08%. Comparing base (7df5b0e) to head (eedf449).

Files with missing lines Patch % Lines
ax/generators/torch/botorch_modular/surrogate.py 97.29% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4109      +/-   ##
==========================================
- Coverage   96.08%   96.08%   -0.01%     
==========================================
  Files         566      566              
  Lines       57104    57174      +70     
==========================================
+ Hits        54868    54934      +66     
- Misses       2236     2240       +4     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

bletham added a commit to bletham/Ax that referenced this pull request Aug 6, 2025
Summary:

Adds a "models_for_gen(n)" method to Surrogate that will constructs a list of n models from which to generate n candidates. The list of models is constructed by sampling from the given ModelConfigs according to their model selection eval criterion (taken as a measure of model quality).

Differential Revision: D77252555
bletham added a commit to bletham/Ax that referenced this pull request Aug 7, 2025
Summary:

Adds a "models_for_gen(n)" method to Surrogate that will constructs a list of n models from which to generate n candidates. The list of models is constructed by sampling from the given ModelConfigs according to their model selection eval criterion (taken as a measure of model quality).

Differential Revision: D77252555
@bletham bletham force-pushed the export-D77252555 branch 2 times, most recently from 52bf559 to 97abab4 Compare August 7, 2025 15:34
bletham added a commit to bletham/Ax that referenced this pull request Aug 7, 2025
Summary:

Adds a "models_for_gen(n)" method to Surrogate that will constructs a list of n models from which to generate n candidates. The list of models is constructed by sampling from the given ModelConfigs according to their model selection eval criterion (taken as a measure of model quality).

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

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

bletham added a commit to bletham/Ax that referenced this pull request Aug 7, 2025
Summary:
Pull Request resolved: facebook#4109

Adds a "models_for_gen(n)" method to Surrogate that will constructs a list of n models from which to generate n candidates. The list of models is constructed by sampling from the given ModelConfigs according to their model selection eval criterion (taken as a measure of model quality).

Differential Revision: D77252555
bletham added a commit to bletham/Ax that referenced this pull request Aug 7, 2025
Summary:

Adds a "models_for_gen(n)" method to Surrogate that will constructs a list of n models from which to generate n candidates. The list of models is constructed by sampling from the given ModelConfigs according to their model selection eval criterion (taken as a measure of model quality).

Differential Revision: D77252555
bletham added a commit to bletham/Ax that referenced this pull request Aug 7, 2025
Summary:

Adds a "models_for_gen(n)" method to Surrogate that will constructs a list of n models from which to generate n candidates. The list of models is constructed by sampling from the given ModelConfigs according to their model selection eval criterion (taken as a measure of model quality).

Differential Revision: D77252555
bletham added 2 commits August 8, 2025 06:08
Summary:

ModelConfig has a name field that is optional. MBM Surrogate needs an identifier for model; currently uses name if present, or just drops the model if not when storing eval results. MBM Generator needs an identifier for model and uses name if present, or str(model_config) if not.

This cleans things up a bit by providing an identifier for ModelConfig that will always exist and so can be used in the place of name and clean up logic in the other parts of MBM. The identifier follows what was done in MBM Generator for tracking gen metadata: it is name if name exists, otherwise a string dump of the model config.

Reviewed By: sdaulton

Differential Revision: D78560884
Summary:

Adds a "models_for_gen(n)" method to Surrogate that will constructs a list of n models from which to generate n candidates. The list of models is constructed by sampling from the given ModelConfigs according to their model selection eval criterion (taken as a measure of model quality).

Reviewed By: sdaulton

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in c5856a6.

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