-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconfig.yml
More file actions
executable file
·120 lines (103 loc) · 2.24 KB
/
config.yml
File metadata and controls
executable file
·120 lines (103 loc) · 2.24 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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
fc_deep:
local_dataset:
train: "train.npz"
test: "test.npz"
# train: "train.npz"
# test: "test.npz"
# central_test: "mnist.npz"
central_test: null
# detail: {} ## no detail should be an empty dict.
detail:
sep: ','
label: "Group"
init_model: "model.pt"
centralized: True
simulation:
clients_dir: c1,c2,c3 # Comma separated list of clients' directories
logic:
# mode: "file"
# dir: "."
mode: "directory"
dir: "data"
result:
pred: "y_pred.csv"
target: "y_test.csv"
model: "model.pt"
fed_hyper_params:
max_iter: 1
n_classes: 10
federated_model: 'FedAvg.py'
global_updates: WEIGHTS_STOPPING
param: { }
use_smpc: True
trainer:
name: 'FedMMB.py'
param: {}
local_update: WEIGHTS_N_SAMPLES
data_loader: ImageLoader # True: using torchvision Dataloader, False using custom Dataloader
optimizer:
name: 'SGD'
param:
lr: 0.1
loss:
name: 'focal_loss.py'
# param: null
param:
alpha:
- 0.2
- 0.3
- 0.3
- 0.2
gamma: 1.1
metrics:
- name: 'Accuracy'
package: 'torchmetrics.classification'
param:
task: 'multiclass'
num_classes: 4
train_config:
verbose: False
batch_size: 32
test_batch_size: 32
epochs: 1
lr: 0.1
batch_count: 1
device: gpu # options{gpu, cpu}
# - name: 'RMSE'
# params: null
model: # 'cnn' or 'cnn.py' or layers_dict
name: 'cnn.py'
n_classes: 10
in_features: 1
# name: 'cnn'
# n_classes: 10
# - type: 'Conv2d'
# param:
# in_channels: None
# out_channels: 32
# kernel_size: 3
# stride: 1
# padding: 1
# bias: True
# - type: 'MaxPool2d'
# param:
# kernel_size: 2
# stride: 2
# - type: 'ReLU'
# - type: 'Conv2d'
# param:
# in_channels: 32
# out_channels: 64
# - type: 'MaxPool2d'
# - type: 'ReLU'
# - type: 'Flatten'
# - type: 'Linear'
# param:
# in_features: None
# out_features: 128
# bias: True
# - type: 'ReLU'
# - type: 'Linear'
# param:
# in_features: 128
# out_features: 10