-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
69 lines (57 loc) · 1.31 KB
/
config.py
File metadata and controls
69 lines (57 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
class SmallConfig(object):
init_scale = 0.1
learning_rate = 1.0
decay = 0.5
max_grad_norm = 5
lstm_layers = 2
lstm_size = 200
word_embedding_dim =200
lstm_forget_bias = 0.0
max_epoch=4
epoch_num =13
dropout_prob = 1.0
vocab_size=10004
train_batch_size = 20
train_step_size = 20
valid_batch_size = 20
valid_step_size = 20
test_batch_size = 20
test_step_size = 20
class MediumConfig(object):
init_scale = 0.05
learning_rate = 1.0
decay = 0.8
max_grad_norm = 5
lstm_layers = 2
lstm_size = 650
word_embedding_dim =650
lstm_forget_bias = 0.0
max_epoch=6
epoch_num =39
dropout_prob = 0.5
vocab_size=10004
train_batch_size = 20
train_step_size = 35
valid_batch_size = 20
valid_step_size = 35
test_batch_size = 20
test_step_size = 35
class LargeConfig(object):
init_scale = 0.04
learning_rate = 1.0
decay = 0.8
max_grad_norm = 10
lstm_layers = 2
lstm_size = 1500
word_embedding_dim =1500
lstm_forget_bias = 0.0
max_epoch=14
epoch_num =55
dropout_prob = 0.35
vocab_size=10004
train_batch_size = 20
train_step_size = 35
valid_batch_size = 20
valid_step_size = 35
test_batch_size = 20
test_step_size = 35