栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

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

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

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
    
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/849198.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号