FS-TFP/benchmark/FedHPOBench/scripts/cnn/femnist_dp.yaml

47 lines
831 B
YAML

use_gpu: True
device: 0
early_stop:
patience: 100
seed: 12345
federate:
mode: standalone
total_round_num: 500
sample_client_rate: 0.2
share_local_model: True
online_aggr: True
join_in_info: ['num_sample']
nbafl:
use: True
mu: 0.1
epsilon: 20.
constant: 1.
w_clip: 0.1
train:
local_update_steps: 1
batch_or_epoch: epoch
optimizer:
lr: 0.01
weight_decay: 0.0
data:
root: data/
type: femnist
splits: [0.6,0.2,0.2]
batch_size: 16
subsample: 0.05
transform: [['ToTensor'], ['Normalize', {'mean': [0.1307], 'std': [0.3081]}]]
num_workers: 0
model:
type: convnet2
hidden: 2048
out_channels: 62
dropout: 0.5
grad:
grad_clip: 5.0
criterion:
type: CrossEntropyLoss
trainer:
type: cvtrainer
eval:
freq: 2
metrics: ['acc', 'correct', 'f1']
split: ['test', 'val', 'train']