-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update MaxTrials to accept list of statuses to check and avoid (#1933)
Summary: Pull Request resolved: #1933 This updates the MaxTrials criterion class to accept a list of trials to check and a list of trials not to check which enables `only_in` and `not_in` functionality for MaxTrials allowing it to be a more flexible class. Things in the pipeline: (0) fix json decoding of `transition_to` argument (1) Use the transition criterion to determine if a node is complete (2) add is_complete to generationNode and then use that in generation Strategy for moving forward (3) When transition_criterion list is empty, unlimited trials can be generated + skip max trial criterion addition if numtrials == -1 (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 Reviewed By: lena-kashtelyan Differential Revision: D50622912 fbshipit-source-id: d0c7c5f189659e4d7dc1f1b3382773bb0bf3fcbd
- Loading branch information
1 parent
cc89030
commit b62cbe7
Showing
3 changed files
with
110 additions
and
50 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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