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

add remaining n input constructor #2758

Closed
wants to merge 4 commits into from

Conversation

mgarrard
Copy link
Contributor

Summary:
This diff adds the input constructor for our default logic for repeat arms. See note in comments about how this new logic differs
Follow up diffs:

  • update the transition logic to leverage this
  • storage --> let's do this once we all like the 3 input constructors
  • update the input constructors to handle the case where n isn't provided as a kwarg
  • add tests for real world scenario per Liz suggestion
  • add test to enforce signature across input constructors per Liz/Sait/Daniel suggestion

Differential Revision: D62467907

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

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

@facebook-github-bot
Copy link
Contributor

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

mgarrard added a commit to mgarrard/Ax that referenced this pull request Sep 10, 2024
Summary:
Pull Request resolved: facebook#2758

This diff adds the input constructor for our default logic for repeat arms. See note in comments about how this new logic differs
Follow up diffs:
- update the transition logic to leverage this
- storage --> let's do this once we all like the 3 input constructors
- update the input constructors to handle the case where n isn't provided as a kwarg
- add tests for real world scenario per Liz suggestion
- add test to enforce signature across input constructors per Liz/Sait/Daniel suggestion

Differential Revision: D62467907
@codecov-commenter
Copy link

codecov-commenter commented Sep 10, 2024

Codecov Report

Attention: Patch coverage is 98.88889% with 1 line in your changes missing coverage. Please review.

Project coverage is 95.68%. Comparing base (2e7291e) to head (d986cad).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../modelbridge/generation_node_input_constructors.py 96.96% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2758   +/-   ##
=======================================
  Coverage   95.67%   95.68%           
=======================================
  Files         486      488    +2     
  Lines       47713    47802   +89     
=======================================
+ Hits        45650    45738   +88     
- Misses       2063     2064    +1     

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

Copy link

@RahulVadisetty91 RahulVadisetty91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jhn

The use of list [ModelSpec] should be List [ModelSpec] from the typing module. The current version is inconsistent with Python's typing standards.

from typing import List
model_specs: List[ModelSpec]

Mia Garrard added 3 commits September 23, 2024 11:18
…t at 9/6/2024, 10:19:43 AM

Differential Revision: D62247100
Summary: todo

Differential Revision: D62310414
Summary: todo

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

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

mgarrard added a commit to mgarrard/Ax that referenced this pull request Sep 23, 2024
Summary:
Pull Request resolved: facebook#2758

This diff adds the input constructor for our default logic for repeat arms. See note in comments about how this new logic differs
Follow up diffs:
- update the transition logic to leverage this
- storage --> let's do this once we all like the 3 input constructors
- update the input constructors to handle the case where n isn't provided as a kwarg
- add tests for real world scenario per Liz suggestion
- add test to enforce signature across input constructors per Liz/Sait/Daniel suggestion

Reviewed By: lena-kashtelyan

Differential Revision: D62467907
Summary:
Pull Request resolved: facebook#2758

This diff adds the input constructor for our default logic for repeat arms. See note in comments about how this new logic differs
Follow up diffs:
- update the transition logic to leverage this
- storage --> let's do this once we all like the 3 input constructors
- update the input constructors to handle the case where n isn't provided as a kwarg
- add tests for real world scenario per Liz suggestion
- add test to enforce signature across input constructors per Liz/Sait/Daniel suggestion

Reviewed By: lena-kashtelyan

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in a880c3a.

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.

4 participants