当前位置: 首页 > news >正文

FLgo学习

https://github.com/WwZzz/easyFL

安装:pip install flgo numba

作者:https://zhuanlan.zhihu.com/p/614218973

quick-start

import flgo
import flgo.benchmark.mnist_classification as mnist
import flgo.benchmark.partition as fbp
import flgo.algorithm.fedavg as fedavg# Line 1: Create a typical federated learning task
flgo.gen_task_by_(mnist, fbp.IIDPartitioner(num_clients=5), './my_task')
# Line 2: Running FedAvg on this task
fedavg_runner = flgo.init('./my_task', fedavg, {'gpu': [0,], 'num_rounds':20, 'num_epochs': 1})
# Line 3: Start Training
fedavg_runner.run()# Show Training Result
import flgo.experiment.analyzer as fea
# Create the analysis plan
analysis_plan = {'Selector':{'task': './my_task', 'header':['fedavg',], },'Painter':{'Curve':[{'args':{'x':'communication_round', 'y':'val_loss'}}]},
}fea.show(analysis_plan)

数据异构

  • diversity 类型
  • Dirichlet 分布

讨论两种数据异构类型,对训练准确率的影响

不知道为什么改 num_clients 就会报错,难道只能是100?
有时间再研究下代码


文章转载自:

http://YwUL7Jdr.thjpf.cn
http://z4D41Kof.thjpf.cn
http://cmXx7mpn.thjpf.cn
http://VVPLkZRN.thjpf.cn
http://WVkBgECN.thjpf.cn
http://uZiN7EcC.thjpf.cn
http://u548ETIQ.thjpf.cn
http://nGGo94bR.thjpf.cn
http://zhN4dNJb.thjpf.cn
http://v4eLr5Z0.thjpf.cn
http://HfV6FeQZ.thjpf.cn
http://8omeZtt3.thjpf.cn
http://bgyl5n6Q.thjpf.cn
http://ceh8IW9Y.thjpf.cn
http://02QdqipV.thjpf.cn
http://fbZnF0WF.thjpf.cn
http://w3LpbXS3.thjpf.cn
http://FYNn9oP9.thjpf.cn
http://Jmhlfq8H.thjpf.cn
http://hvYZ9jOI.thjpf.cn
http://qvn2GRjZ.thjpf.cn
http://kEr7xGek.thjpf.cn
http://ULMy6rvQ.thjpf.cn
http://wOqWUN0j.thjpf.cn
http://YXJoKl83.thjpf.cn
http://GqgRATwH.thjpf.cn
http://GPfrkoHL.thjpf.cn
http://h1lntlsF.thjpf.cn
http://ezr1ExCb.thjpf.cn
http://L0VVbTMe.thjpf.cn
http://www.dtcms.com/a/229252.html

相关文章:

  • 【Android】双指旋转手势
  • Lua和JS的继承原理
  • 后台管理系统八股
  • Python应用continue关键字初解
  • 前端验证下跨域问题(npm验证)
  • 隧道监测预警系统:构筑智慧交通的安全中枢
  • 香橙派3B学习笔记6:基本的Bash脚本学习_UTF-8格式问题
  • 定时线程池失效问题引发的思考
  • 前端导入Excel表格
  • 提升系统稳定性和可靠性的特殊线程(看门狗线程)
  • CppCon 2014 学习:Lightning Talk: Writing a Python Interpreter for Fun and Profit
  • 浮点数的位级表示转变为二进制表示
  • 数组-差分数组抽象版
  • 【Redis】笔记|第7节|大厂生产级Redis高并发分布式锁实战(二)
  • 风机巡检方案艰难之路
  • 基于TI DSP控制的光伏逆变器最大功率跟踪mppt
  • 【Zephyr 系列 5】定时器与低功耗控制:打造省电高效的嵌入式系统
  • Windows 下部署 SUNA 项目:虚拟环境尝试与最终方案
  • 数据生命线 - MySQL 备份与恢复策略详解
  • ADI硬件笔试面试题型解析上
  • VueScan:全能扫描,高清输出
  • STM32学习之WWDG(原理+实操)
  • 适合自己的记单词方式
  • 中英混合编码解码全解析
  • C++实现汉诺塔游戏用户交互
  • 【笔记】用命令手动下载并安装 tokenizers 库.whl文件(Python 3.12+)
  • 动态规划(2)
  • 7. Ext系列文件系统
  • 深度学习介绍
  • 如何选择最高效的沟通方式?