-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.json
85 lines (79 loc) · 1.94 KB
/
config.json
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"name": "DMM_rnn",
"n_gpu": 1,
"arch": {
"type": "DeepMarkovModel",
"args": {
"input_dim": 88,
"z_dim": 100,
"emission_dim": 100,
"transition_dim": 200,
"rnn_dim": 600,
"rnn_type": "lstm",
"rnn_layers": 1,
"rnn_bidirection": false,
"use_embedding": true,
"orthogonal_init": true,
"gated_transition": true,
"train_init": false,
"mean_field": false,
"reverse_rnn_input": true,
"sample": true
}
},
"data_loader_train": {
"type": "PolyMusicDataLoader",
"args":{
"batch_size": 20,
"data_dir": "jsb",
"split": "train",
"shuffle": true,
"num_workers": 1
}
},
"data_loader_valid": {
"type": "PolyMusicDataLoader",
"args":{
"batch_size": 20,
"data_dir": "jsb",
"split": "valid",
"shuffle": false,
"num_workers": 1
}
},
"data_loader_test": {
"type": "PolyMusicDataLoader",
"args":{
"batch_size": 20,
"data_dir": "jsb",
"split": "test",
"shuffle": false,
"num_workers": 1
}
},
"optimizer": {
"type": "Adam",
"args":{
"lr": 0.0008,
"weight_decay": 0.0,
"amsgrad": true,
"betas": [0.9, 0.999]
}
},
"loss": "dmm_loss",
"metrics": [
"bound_eval", "importance_sample"
],
"trainer": {
"epochs": 3000,
"overfit_single_batch": false,
"save_dir": "saved/",
"save_period": 500,
"verbosity": 2,
"monitor": "min val_loss",
"early_stop": 100,
"tensorboard": true,
"min_anneal_factor": 0.0,
"anneal_update": 5000
}
}