Created
May 29, 2019 15:02
-
-
Save sshleifer/a06172aa52a9411eb69517226ac4fdb9 to your computer and use it in GitHub Desktop.
ideal grid/api for hardness sampling
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
pg1 = update_batch_size(ParameterGrid({ | |
'lr': [1e-4, 1e-3, 3e-3, 1e-2, .05, 1e-1], | |
'label_smoothing': [True, False], | |
'size': [128], | |
'bs': [256], | |
'hardness_percentile': [.75, .5, .25, .1] # top 50%, top25% | |
})) | |
# Now based on easiness | |
pg2 = update_batch_size(ParameterGrid({ | |
'lr': [1e-4, 1e-3, 3e-3, 1e-2, .05, 1e-1], | |
'label_smoothing': [True, False], | |
'size': [128], | |
'bs': [256], | |
'easiness_percentile': [.75, .5, .25, .1] | |
})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment