-
Notifications
You must be signed in to change notification settings - Fork 464
Open
Description
While running the code, the following attribute errors were coming. Can anyone tell the reasons for such errors??
For equal case:
Traceback (most recent call last):
File "src/federated_main.py", line 36, in <module>
train_dataset, test_dataset, user_groups = get_dataset(args)
File "C:\Users\sharm\Downloads\Federated-Learning-PyTorch-master\src\utils.py", line 41, in get_dataset
user_groups = cifar_noniid(train_dataset, args.num_users)
File "C:\Users\sharm\Downloads\Federated-Learning-PyTorch-master\src\sampling.py", line 173, in cifar_noniid
labels = np.array(dataset.train_labels)
File "C:\Users\sharm\.conda\envs\newEnv\lib\site-packages\torch\utils\data\dataset.py", line 83, in __getattr__
raise AttributeError
AttributeError
For Unequal case:
Traceback (most recent call last):
File "src/federated_main.py", line 36, in <module>
train_dataset, test_dataset, user_groups = get_dataset(args)
File "C:\Users\sharm\Downloads\Federated-Learning-PyTorch-master\src\utils.py", line 38, in get_dataset
raise NotImplementedError()
NotImplementedError
Metadata
Metadata
Assignees
Labels
No labels