-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor codes about setting experiment arguments and how FL method classes using them. Now all arguments are mostly set via config file and the way of setting common experiment arguments via CLI is no longer supported. Now users can only through CLI setting FL methods arguements, which is still prior to set in config file and the defaults. Beutify the stdout of argument dict on terminal. Rename some variables. Add more type hints. Make README.md more readable. Try to make codes more elegant.
- Loading branch information
Showing
71 changed files
with
1,283 additions
and
1,066 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Full explaination are listed on README.md | ||
common: | ||
dataset: mnist | ||
seed: 42 | ||
model: lenet5 | ||
join_ratio: 0.1 | ||
global_epoch: 100 | ||
local_epoch: 5 | ||
finetune_epoch: 0 | ||
batch_size: 32 | ||
test_interval: 100 | ||
straggler_ratio: 0 | ||
straggler_min_local_epoch: 0 | ||
external_model_params_file: null | ||
optimizer: | ||
name: sgd # [sgd, adam, adamw, rmsprop, adagrad] | ||
lr: 0.01 | ||
dampening: 0 # [sgd] | ||
weight_decay: 0 | ||
momentum: 0 # SGD, RMSprop | ||
alpha: 0.99 # RMSprop | ||
nesterov: false # SGD | ||
betas: [0.9, 0.999] # Adam, AdamW | ||
|
||
eval_test: true | ||
eval_val: false | ||
eval_train: false | ||
|
||
verbose_gap: 10 | ||
visible: false | ||
use_cuda: true | ||
save_log: true | ||
save_model: false | ||
save_fig: true | ||
save_metrics: true | ||
viz_win_name: null | ||
check_convergence: true | ||
|
||
|
||
# You can set specific arguments for FL methods also | ||
# FL-bench uses FL method arguments by args.<method>.<arg> | ||
# e.g., | ||
# fedprox: | ||
# mu: 0.01 | ||
# | ||
# pfedsim: | ||
# warmup_round: 0.7 | ||
# ... | ||
|
||
|
||
# NOTE: For those unmentioned arguments, the default values are set in `get_<method>_args()` in `src/server/<method>.py` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.