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

Rename modeling layer components #3280

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sdaulton
Copy link
Contributor

Summary:
Rename Model -> Generator, ModelSpec -> GeneratorSpec, Modelbridge -> Adapter.

This also updates the decoders so that we can load objects stored with the previous names: e.g. decode Models as Generators.

Differential Revision: D68735059

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

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

@codecov-commenter
Copy link

codecov-commenter commented Jan 28, 2025

Codecov Report

Attention: Patch coverage is 98.61461% with 11 lines in your changes missing coverage. Please review.

Project coverage is 96.04%. Comparing base (257af9c) to head (4b45bd6).

Files with missing lines Patch % Lines
ax/modelbridge/base.py 72.72% 3 Missing ⚠️
ax/modelbridge/map_torch.py 60.00% 2 Missing ⚠️
ax/models/tests/test_botorch_model.py 89.47% 2 Missing ⚠️
ax/plot/marginal_effects.py 0.00% 2 Missing ⚠️
ax/modelbridge/factory.py 83.33% 1 Missing ⚠️
ax/modelbridge/tests/test_torch_modelbridge.py 96.29% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3280   +/-   ##
=======================================
  Coverage   96.04%   96.04%           
=======================================
  Files         518      518           
  Lines       52162    52170    +8     
=======================================
+ Hits        50098    50106    +8     
  Misses       2064     2064           

☔ 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: D68735059

sdaulton added a commit to sdaulton/Ax-1 that referenced this pull request Jan 28, 2025
Summary:
Pull Request resolved: facebook#3280

Rename `Model` -> `Generator`, `ModelSpec` -> `GeneratorSpec`, `Modelbridge` -> `Adapter`.

This also updates the decoders so that we can load objects stored with the previous names: e.g. decode `Models` as `Generators`.

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

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

sdaulton added a commit to sdaulton/Ax-1 that referenced this pull request Jan 30, 2025
Summary:
Pull Request resolved: facebook#3280

Rename `Model` -> `Generator`, `ModelSpec` -> `GeneratorSpec`, `Modelbridge` -> `Adapter`.

This also updates the decoders so that we can load objects stored with the previous names: e.g. decode `Models` as `Generators`.

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

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

sdaulton added a commit to sdaulton/Ax-1 that referenced this pull request Jan 30, 2025
Summary:
Pull Request resolved: facebook#3280

Rename `Model` -> `Generator`, `ModelSpec` -> `GeneratorSpec`, `Modelbridge` -> `Adapter`.

This also updates the decoders so that we can load objects stored with the previous names: e.g. decode `Models` as `Generators`.

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

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

sdaulton added a commit to sdaulton/Ax-1 that referenced this pull request Jan 30, 2025
Summary:
Pull Request resolved: facebook#3280

Rename `Model` -> `Generator`, `ModelSpec` -> `GeneratorSpec`, `Modelbridge` -> `Adapter`.

This also updates the decoders so that we can load objects stored with the previous names: e.g. decode `Models` as `Generators`.

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

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

sdaulton added a commit to sdaulton/Ax-1 that referenced this pull request Feb 3, 2025
Summary:
Pull Request resolved: facebook#3280

Rename `Model` -> `Generator`, `ModelSpec` -> `GeneratorSpec`, `Modelbridge` -> `Adapter`.

This also updates the decoders so that we can load objects stored with the previous names: e.g. decode `Models` as `Generators`.

Differential Revision: D68735059
Summary:
Pull Request resolved: facebook#3280

Rename `Model` -> `Generator`, `ModelSpec` -> `GeneratorSpec`, `Modelbridge` -> `Adapter`.

This also updates the decoders so that we can load objects stored with the previous names: e.g. decode `Models` as `Generators`.

Reviewed By: saitcakmak

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

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

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants