Experiments ON Federated Learning ---------Some Questions

  • IN FedEM’s code, what is learner, cluster?
  • How to add new algorithm to it?

I plan to run 3 algorithms (i.e. FedAvg, FedProx, FedMine) ON 3 datasets (i.e. CIFAR10, CIFAR100, Shakespeare)

In my paper, there should be some figures about the experiment.

  • 1 from the distribution about the dataset.
  • 4 from the experiment’s result (i.e. Train/Acc, Train/Loss; Test/Acc, Test/Loss), and which one has 3 lines (FedAvg, FedProx, FedMine)

Also, it must contains some tables.

  • 1 about the three dataset’s model’s architecture
  • 1 about used GPU and coresponding run time on each dataset

Yes, there was some introductions at each bottom of the figures and tables.So , maybe that’s all.

Tips on running:(latter convenients)

  • CIFAR10:
    Split:

    python generate_data.py  --n_tasks 80  --n_components 3 --alpha 0.4 --s_frac 1.0 --tr_frac 0.8  --seed 12345
    

    Run:

    python run_experiment.py cifar10 FedAvg --n_learners 1 --n_rounds 200 --bz 64 --lr 0.01  --lr_scheduler multi_step --log_freq 10 --device cuda --optimizer sgd --seed 1234 --verbose 1
    
  • CIFAR100:
    Split:

    python generate_data.py --n_tasks 100 --pachinko_allocation_split --alpha 0.4 --beta 10 --s_frac 1.0 --tr_frac 0.8 --seed 12345  
    

    Run:

    python run_experiment.py cifar100 FedAvg --n_learners 1 --n_rounds 200 --bz 128 --lr 0.01 --lr_scheduler multi_step --log_freq 5 --device cuda --optimizer sgd --seed 1234 --verbose 1
    
  • ShakeSpeare:
    Split: First, Run ./get_data.sh, then run generate_data.py

    python generate_data.py --s_frac 1.0 --tr_frac 0.8 --seed 12345
    

    Run:

    python run_experiment.py shakespeare FedAvg --n_learners 1 --n_rounds 200 --bz 128 --lr 0.01 --lr_scheduler multi_step --log_freq 5 --device cuda --optimizer sgd --seed 1234 --verbose 1
    
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值