WwZzz / easyFL

An experimental platform for federated learning.
Apache License 2.0
545 stars 93 forks source link

运行result_analysis.py的报错 #13

Open timohaha opened 2 years ago

timohaha commented 2 years ago

Traceback (most recent call last): File "D:/zyz/paper2/code/utils/result_analysis.py", line 505, in <module> drawer.draw(cfg['ploter']) File "D:/zyz/paper2/code/utils/result_analysis.py", line 251, in draw f(plot_obj) File "D:/zyz/paper2/code/utils/result_analysis.py", line 329, in bar data = [d[plot_obj['y']] for d in self.rec_dicts] File "D:/zyz/paper2/code/utils/result_analysis.py", line 329, in <listcomp> data = [d[plot_obj['y']] for d in self.rec_dicts] KeyError: 'client_datavol'

WwZzz commented 2 years ago

你好,错误来源于result_analysis文件的默认参数res_config.yml所指定的画图plot中,需要指定的y被Logger记录为同名的变量(例,所保存的logger.output字典中需要包含名称为client_datavol的键值对)。由于在后续对logger的更新中取消了对client_datavol进行默认保存,因此报错;现已将client_datavol从res_config.yml中删除并更新至github。谢谢你的反馈