-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_mnist.json
69 lines (58 loc) · 1.37 KB
/
config_mnist.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
{
"name": "mnist_resnet18",
"seed":123,
"feature_noise_rate":0.95,
"arch": {
"type": "resnet18gray",
"args": {"num_classes":10}
},
"num_classes": 10,
"data_loader": {
"type": "MNISTDataLoader",
"args":{
"data_dir": "./dir/to/data",
"batch_size": 128,
"num_batches": 0,
"shuffle": true,
"validation_split": 0.1,
"num_workers": 0,
"pin_memory": true
}
},
"optimizer": {
"type": "SGD",
"args":{
"lr": 0.02,
"momentum": 0.9,
"weight_decay": 5e-3
}
},
"train_loss": "cross_entropy",
"val_loss": "cross_entropy",
"metrics": [
"my_metric", "my_metric2"
],
"lr_scheduler": {
"type": "MultiStepLR",
"args": {
"milestones": [100],
"gamma": 0.1
}
},
"trainer": {
"epochs": 200,
"warmup": 0,
"save_dir": "./dir/to/model",
"save_period": 100,
"verbosity": 2,
"label_dir": "saved/",
"monitor": "min loss",
"early_stop": 4000,
"tensorboard": false,
"mlflow": false,
"_percent": "Percentage of noise",
"percent": 0.8,
"_asym": "symmetric noise if false",
"asym": false
}
}