-
Notifications
You must be signed in to change notification settings - Fork 358
Make transition_to non-optional for TC
#4848
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
Open
mgarrard
wants to merge
1
commit into
facebook:main
Choose a base branch
from
mgarrard:export-D91141100
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+60
−32
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Summary: **Enforce `transition_to` as a required argument in `TransitionCriterion`** This diff makes `transition_to` a required argument in the `TransitionCriterion` class. It updates the `MinimumPreferenceOccurances` and `MinTrials` classes to include `transition_to` as a required argument. The `GenerationNode` class is also updated to include a `placeholder_transition_to` attribute, which will be overwritten in the `GenerationStrategy` constructor. The changes include: * Updated `MinimumPreferenceOccurances` and `MinTrials` classes to require `transition_to` argument * Added `placeholder_transition_to` attribute to `GenerationNode` class * Updated unit tests to reflect the changes With this change, users will be required to provide a `transition_to` argument when creating a `TransitionCriterion` object. This ensures that the `GenerationStrategy` knows which generation node to transition to when a criterion is met. Reviewed By: lena-kashtelyan Differential Revision: D91141100
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4848 +/- ##
=======================================
Coverage 96.75% 96.75%
=======================================
Files 590 590
Lines 61716 61719 +3
=======================================
+ Hits 59711 59714 +3
Misses 2005 2005 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
mgarrard
added a commit
to mgarrard/Ax
that referenced
this pull request
Feb 3, 2026
Summary: **Enforce `transition_to` as a required argument in `TransitionCriterion`** This diff makes `transition_to` a required argument in the `TransitionCriterion` class. It updates the `MinimumPreferenceOccurances` and `MinTrials` classes to include `transition_to` as a required argument. The `GenerationNode` class is also updated to include a `placeholder_transition_to` attribute, which will be overwritten in the `GenerationStrategy` constructor. The changes include: * Updated `MinimumPreferenceOccurances` and `MinTrials` classes to require `transition_to` argument * Added `placeholder_transition_to` attribute to `GenerationNode` class * Updated unit tests to reflect the changes With this change, users will be required to provide a `transition_to` argument when creating a `TransitionCriterion` object. This ensures that the `GenerationStrategy` knows which generation node to transition to when a criterion is met. Reviewed By: lena-kashtelyan Differential Revision: D91141100
mgarrard
added a commit
to mgarrard/Ax
that referenced
this pull request
Feb 3, 2026
Summary: **Enforce `transition_to` as a required argument in `TransitionCriterion`** This diff makes `transition_to` a required argument in the `TransitionCriterion` class. It updates the `MinimumPreferenceOccurances` and `MinTrials` classes to include `transition_to` as a required argument. The `GenerationNode` class is also updated to include a `placeholder_transition_to` attribute, which will be overwritten in the `GenerationStrategy` constructor. The changes include: * Updated `MinimumPreferenceOccurances` and `MinTrials` classes to require `transition_to` argument * Added `placeholder_transition_to` attribute to `GenerationNode` class * Updated unit tests to reflect the changes With this change, users will be required to provide a `transition_to` argument when creating a `TransitionCriterion` object. This ensures that the `GenerationStrategy` knows which generation node to transition to when a criterion is met. Reviewed By: lena-kashtelyan Differential Revision: D91141100
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
Enforce
transition_toas a required argument inTransitionCriterionThis diff makes
transition_toa required argument in theTransitionCriterionclass. It updates theMinimumPreferenceOccurancesandMinTrialsclasses to includetransition_toas a required argument. TheGenerationNodeclass is also updated to include aplaceholder_transition_toattribute, which will be overwritten in theGenerationStrategyconstructor.The changes include:
MinimumPreferenceOccurancesandMinTrialsclasses to requiretransition_toargumentplaceholder_transition_toattribute toGenerationNodeclassWith this change, users will be required to provide a
transition_toargument when creating aTransitionCriterionobject. This ensures that theGenerationStrategyknows which generation node to transition to when a criterion is met.Reviewed By: lena-kashtelyan
Differential Revision: D91141100