-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathcode2seq-java-med.yaml
60 lines (49 loc) · 1.12 KB
/
code2seq-java-med.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
data_folder: ../data/code2seq/java-med
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: Code2Seq -- java-med
group: null
offline: false
data:
url: https://s3.eu-west-1.amazonaws.com/datasets.ml.labs.aws.intellij.net/java-paths-methods/java-med.tar.gz
num_workers: 4
# 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
path_length: 9
max_context: 200
random_context: true
batch_size: 512
test_batch_size: 512
model:
# Encoder
embedding_size: 128
encoder_dropout: 0.25
encoder_rnn_size: 128
use_bi_rnn: true
rnn_num_layers: 1
# Decoder
decoder_size: 320
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: 10
patience: 10
clip_norm: 5
teacher_forcing: 1.0
val_every_epoch: 1
save_every_epoch: 1
log_every_n_steps: 10