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 Decorator for GenerationStep only functions in GenerationStrategy #2045

Closed
wants to merge 2 commits into from

Conversation

mgarrard
Copy link
Contributor

@mgarrard mgarrard commented Dec 5, 2023

Summary:
This diff does the following:
Add decorator for functions that are only supported in steps -- this prevents some code redundancy

upcoming:
(1) update the storage to include nodes independently (and not just as part of step)
(2) delete now unused GenStep functions
(3) final pass on all the doc strings and variables -- lots to clean up here
(4) add transition criterion to the repr string + some of the other fields that havent made it yet on GeneratinoNode
(5) Do a final pass of the generationStrategy/GenerationNode files to see what else can be migrated/condensed
(6) rename transiton criterion to action criterion
(7) remove conditionals for legacy usecase
( clean up any lingering todos

Differential Revision: D51816513

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

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

@codecov-commenter
Copy link

codecov-commenter commented Dec 5, 2023

Codecov Report

Attention: 11 lines in your changes are missing coverage. Please review.

Comparison is base (46e61d1) 94.52% compared to head (b3614d4) 94.61%.
Report is 2 commits behind head on main.

❗ Current head b3614d4 differs from pull request most recent head d3906b0. Consider uploading reports for the commit d3906b0 to get more accurate results

Files Patch % Lines
ax/modelbridge/generation_strategy.py 90.90% 9 Missing ⚠️
ax/modelbridge/model_spec.py 80.00% 1 Missing ⚠️
ax/modelbridge/transition_criterion.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2045      +/-   ##
==========================================
+ Coverage   94.52%   94.61%   +0.08%     
==========================================
  Files         460      460              
  Lines       44638    44845     +207     
==========================================
+ Hits        42195    42429     +234     
+ Misses       2443     2416      -27     

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

mgarrard pushed a commit to mgarrard/Ax that referenced this pull request Dec 6, 2023
…facebook#2045)

Summary:

This diff does the following:
Add decorator for functions that are only supported in steps -- this prevents some code redundancy


upcoming:
(1) update the storage to include nodes independently (and not just as part of step)
(2) delete now unused GenStep functions
(3) final pass on all the doc strings and variables -- lots to clean up here
(4) add transition criterion to the repr string + some of the other fields that havent made it yet on GeneratinoNode
(5) Do a final pass of the generationStrategy/GenerationNode files to see what else can be migrated/condensed
(6) rename transiton criterion to action criterion
(7) remove conditionals for legacy usecase
( clean up any lingering todos

Reviewed By: lena-kashtelyan

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

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

mgarrard pushed a commit to mgarrard/Ax that referenced this pull request Dec 6, 2023
…facebook#2045)

Summary:

This diff does the following:
Add decorator for functions that are only supported in steps -- this prevents some code redundancy


upcoming:
(1) update the storage to include nodes independently (and not just as part of step)
(2) delete now unused GenStep functions
(3) final pass on all the doc strings and variables -- lots to clean up here
(4) add transition criterion to the repr string + some of the other fields that havent made it yet on GeneratinoNode
(5) Do a final pass of the generationStrategy/GenerationNode files to see what else can be migrated/condensed
(6) rename transiton criterion to action criterion
(7) remove conditionals for legacy usecase
( clean up any lingering todos

Reviewed By: lena-kashtelyan

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

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

Mia Garrard added 2 commits December 6, 2023 17:04
… default to GenerationNodes (facebook#2024)

Summary:

This diff does the following:
Supports GenerationNodes at the level of GenerationStrategy. This is the big hurrah diff! 

upcoming:
(0) Add decorator for functions that are only supported in steps
(1) update the storage to include nodes independently (and not just as part of step)
(2) delete now unused GenStep functions
(3) final pass on all the doc strings and variables -- lots to clean up here
(4) add transition criterion to the repr string + some of the other fields that havent made it yet on GeneratinoNode
(5) Do a final pass of the generationStrategy/GenerationNode files to see what else can be migrated/condensed
(6) rename transiton criterion to action criterion
(7) remove conditionals for legacy usecase
(8) clean up any lingering todos

Reviewed By: lena-kashtelyan

Differential Revision: D51120002
…facebook#2045)

Summary:

This diff does the following:
Add decorator for functions that are only supported in steps -- this prevents some code redundancy


upcoming:
(1) update the storage to include nodes independently (and not just as part of step)
(2) delete now unused GenStep functions
(3) final pass on all the doc strings and variables -- lots to clean up here
(4) add transition criterion to the repr string + some of the other fields that havent made it yet on GeneratinoNode
(5) Do a final pass of the generationStrategy/GenerationNode files to see what else can be migrated/condensed
(6) rename transiton criterion to action criterion
(7) remove conditionals for legacy usecase
( clean up any lingering todos

Reviewed By: lena-kashtelyan

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in a28e851.

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