-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathcode2class-poj104.yaml
More file actions
58 lines (47 loc) · 1.01 KB
/
code2class-poj104.yaml
File metadata and controls
58 lines (47 loc) · 1.01 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
data_folder: ../data/poj-104/poj-104-code2seq
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: Code2Class -- poj-104
group: null
offline: full
data:
url: https://s3.eu-west-1.amazonaws.com/datasets.ml.labs.aws.intellij.net/poj-104/poj-104-code2seq.tar.gz
num_workers: 0
max_labels: null
max_label_parts: 1
max_tokens: 190000
max_token_parts: 5
path_length: 9
max_context: 200
random_context: true
batch_size: 512
test_batch_size: 768
model:
# Encoder
embedding_size: 128
encoder_dropout: 0.25
encoder_rnn_size: 128
use_bi_rnn: true
rnn_num_layers: 1
# Classifier
classifier_layers: 2
classifier_size: 128
activation: relu
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