Skip to content

Commit

Permalink
hp
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisChen1992 committed Feb 3, 2019
1 parent 66b9214 commit 17edb76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions summary_FFN.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,11 @@ def test(config, logdir, nFactor):

def main(_):
hp_dict = {}
hp_dict['num_epoch'] = [128, 256, 384, 512]
hp_dict['max_iter'] = [8, 16, 32, 64, 128]
hp_dict['hidden_dims'] = [[32], [16], [8], [4],
[32,32], [16,16], [8,8], [4,4],
[32,16], [16,8], [8,4], [4,2]]
hp_dict['lr'] = [0.002, 0.001, 0.0005, 0.0002]
hp_dict['dropout'] = [0.99, 0.95, 0.9]

hp = HyperParameterSpace(hp_dict)
params = hp.getParamsName()
Expand Down
2 changes: 1 addition & 1 deletion tool/create_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
hp_dict['hidden_dims'] = [[32], [16], [8], [4],
[32,32], [16,16], [8,8], [4,4],
[32,16], [16,8], [8,4], [4,2]]
hp_dict['lr'] = [0.1, 0.01, 0.001]
hp_dict['lr'] = [0.002, 0.001, 0.0005, 0.0002]
hp_dict['dropout'] = [0.99, 0.95, 0.9]

hp = HyperParameterSpace(hp_dict)
Expand Down

0 comments on commit 17edb76

Please sign in to comment.