-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig4test.json
46 lines (46 loc) · 928 Bytes
/
config4test.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
{
"name": "Mnist_LeNet",
"arch": {
"type": "MnistModel",
"args": {}
},
"dataset": {
"type": "MnistTestDataset",
"args":{
"data_dir": "data/"
}
},
"optimizer": {
"type": "Adam",
"args":{
"lr": 0.001,
"weight_decay": 0,
"amsgrad": true
}
},
"loss": "nll_loss",
"metrics": [
"accuracy"
],
"lr_scheduler": {
"type": "StepLR",
"args": {
"step_size": 50,
"gamma": 0.1
}
},
"trainer": {
"num_epochs": 6,
"save_dir": "saved/",
"train_dataloader_args": {
"batch_size": 128,
"shuffle": true,
"num_workers": 2
},
"eval_dataloader_args": {
"batch_size": 128,
"shuffle": false,
"num_workers": 1
}
}
}