Source code for FedTune.
The core code for FedTune is in fedtuner.py
Please refer to Dataset/README.md
-
FL training with FedTune enabled
CUDA_VISIBLE_DEVICES=7 python Project/FedTune/main.py --enable_fedtune False --aggregator fednova --model resnet_10 --target_model_accuracy 0.8 --n_participant 20 --n_training_pass 20 --dataset speech_commands
-
FL training with FedTune disabled
CUDA_VISIBLE_DEVICES=7 python Project/Fedtune/main.py --enable_fedtune False --aggregator fedavg --model resnet_10 --target_model_accuracy 0.8 --n_participant 20 --n_training_pass 20 --dataset speech_commands
Required arguments:
- --enable_fedtune False
- --aggregator
- --model
- --target_model_accuracy
- --dataset
- --n_participant
- --n_training_pass
-
Optional arguments
- --n_consecutive_better: number of trained model is consecutively better than the target accuracy before stop training. Default 5.
- --trace_id: trace id. Default 1.
- --penalty: penalty factor when bad decision occurs. Default 10.