-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathtyped-code2seq-java-test.yaml
62 lines (50 loc) · 1.05 KB
/
typed-code2seq-java-test.yaml
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
data_folder: ../data/code2seq/java-test-typed
checkpoint: null
seed: 7
# Training in notebooks (e.g. Google Colab) may crash with too small value
progress_bar_refresh_rate: 1
print_config: true
wandb:
project: Test project
group: Test group
offline: true
data:
num_workers: 0
# Each token appears at least 10 times (99.2% coverage)
labels_count: 10
max_label_parts: 7
# Each token appears at least 1000 times (99.5% coverage)
tokens_count: 1000
max_token_parts: 5
types_count: null
max_type_parts: 5
path_length: 9
max_context: 200
random_context: true
batch_size: 5
test_batch_size: 10
model:
# Encoder
embedding_size: 10
encoder_dropout: 0.25
encoder_rnn_size: 10
use_bi_rnn: true
rnn_num_layers: 1
# Decoder
decoder_size: 20
decoder_num_layers: 1
rnn_dropout: 0.5
optimizer:
optimizer: "Momentum"
nesterov: true
lr: 0.01
weight_decay: 0
decay_gamma: 0.95
train:
n_epochs: 5
patience: 10
clip_norm: 10
teacher_forcing: 1.0
val_every_epoch: 1
save_every_epoch: 1
log_every_n_steps: 10