Closed mh-lan closed 2 years ago
@mh-lan Thanks for your feedback. This is just a logging issue and doesn't have impact on the accuracy. I've just fixed at dev branch. Will be released to master later this week.
https://github.com/FedML-AI/FedML/commit/5439f4ca31c7cbb3b1cba1721a770aa63f1488fc
Many thanks.
After running
fedml.run_simulation()
with the following argsargs = {'yaml_config_file': '', 'run_id': '0', 'rank': 0, 'local_rank': 0, 'yaml_paths': ['C:\\Users\\doubl\\anaconda3\\lib\\site-packages\\fedml\\config/simulation_sp/fedml_config.yaml'], 'training_type': 'simulation', 'random_seed': 0, 'dataset': 'mnist', 'data_cache_dir': '../../../data/mnist', 'partition_method': 'hetero', 'partition_alpha': 0.5, 'model': 'lr', 'federated_optimizer': 'FedAvg', 'client_id_list': '[]', 'client_num_in_total': 1000, 'client_num_per_round': 10, 'comm_round': 200, 'epochs': 1, 'batch_size': 10, 'client_optimizer': 'sgd', 'learning_rate': 0.03, 'weight_decay': 0.001, 'frequency_of_the_test': 5, 'using_gpu': False, 'gpu_id': 0, 'backend': 'sp', 'log_file_dir': './log', 'enable_wandb': False, 'wandb_key': 'ee0b5f53d949c84cee7decbe7a629e63fb2f8408', 'wandb_entity': 'fedml-ai', 'wandb_project': 'simulation', 'run_name': 'fedml_torch_fedavg_mnist_lr'}
, all the clients indexes are set to 0 during each communication roundwhile the Client Index ought to be the element in the index set
[993 859 298 553 672 971 27 231 306 706]
?