TsingZ0 / PFLlib

37 traditional FL (tFL) or personalized FL (pFL) algorithms, 3 scenarios, and 20 datasets.
GNU General Public License v2.0
1.35k stars 283 forks source link

关于Cifar100数据集运行报错的问题 #181

Closed SharonNightray closed 4 months ago

SharonNightray commented 5 months ago

您好,非常感谢您开源代码的帮助!我是一名初学者,在使用Cifar100数据集的时候运行出现了错误。我的设置是pat设置,共设置了20个客户端,每个客户端都拥有10类数据,但是在运行的时候仍然会出现 ValueError: Only one class present in y_true. ROC AUC score is not defined in that case. 的错误,问题可能出现在哪里呢

TsingZ0 commented 4 months ago

可能的问题是:1、你的数据经过Dataloader封装之后,这个batch里全部都是某个label的数据,2、你这个batch只有一个sample