Allow list hyperparameters in method JSON #60
Merged
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.
First, this PR moves a lot of hyperparameter logic from BTB to ATM. Specifically, all conditional hyperparameters are handled on the ATM side now. Categorical hyperparameters will remain in BTB, but the BTB categoricals will not be relevant to ATM anymore.
The bigger change is the addition of List hyperparameters: you can now add a single hyperparameter that represents a list of many hyperparameters of the same type and range. For example, in
multi_layer_perceptron.json
:Lists need to be defined with caution. Behind the scenes, the list is translated to a single "size" hyperparameter along with a list of "element" hyperparameters conditioned on every possible value of "size". For example, the above code would define the following hyperpartitions:
Note that
"sizes"
must be defined as a list of possible values, not a range. This should make it harder to accidentally create O(n2) conditional hyperparameters by defining a list with a huge range.Finally, categorical hyperparameters are now defined with a list of
"values"
instead of a"range"
. This is meant to make it less confusing when definingint
orint_cat
parameters. For example:is different from