KarhouTam / FL-bench

Benchmark of federated learning. Dedicated to the community. 🤗
GNU General Public License v3.0
505 stars 82 forks source link

"python generate_data.py -d cifar10 --iid 1 -cn 20" wil generate none data #80

Closed SadAngelF closed 4 months ago

SadAngelF commented 4 months ago

There is a bug in generate_data.py, line 163.

if 0 < args.iid < 1.0:

should be changed as:

if 0 < args.iid <= 1.0:

Beacuse when iid is 1, the data will in iid_data_partition. So args.iid < 1.0 will produce the none data in partition.

KarhouTam commented 4 months ago

Thx. Fixed already.

KarhouTam commented 4 months ago

This issue is closed due to long time no response.