Allow self-tuning submissions to specify dropout_rate
and aux_dropout_rate
#851
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.
Original issue
Self-tuning submissions use default values for
dropout_rate
andaux_dropout_rate
(see #753).We want to allow them to specify custom values for these hyperparameters.
Solution
Allow self-tuning submission to provide a JSON file specifying values for these hyperparameters.
The JSON file should look like this:
This is passed to
submission_runner.py
through--tuning_search_space
.We read from such JSON file, and check that:
We then proceed to call
train_once
with the correspondent fixed hyperparameters.Discussion
I think this solution is pretty clean, I am just dubious about passing the JSON file path trough
tuning_search_space
., as this might create some confusion. Perhaps we shall change the name of this flag, or we can add a different flag?Fix #753