Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AshwinRJ/Federated-Learning-PyTorch
/ functions
Functions
27 in github.com/AshwinRJ/Federated-Learning-PyTorch
⨍
Functions
27
◇
Types & classes
7
↓ 4 callers
Method
__init__
(self, dim_in, dim_hidden, dim_out)
src/models.py:10
↓ 2 callers
Function
args_parser
()
src/options.py:8
↓ 2 callers
Function
get_dataset
Returns train and test datasets and a user group which is a dict where the keys are the user index and the values are the corresponding data for
src/utils.py:12
↓ 2 callers
Function
mnist_noniid
Sample non-I.I.D client data from MNIST dataset :param dataset: :param num_users: :return:
src/sampling.py:26
↓ 2 callers
Function
test_inference
Returns the test accuracy and loss.
src/update.py:114
↓ 1 callers
Function
average_weights
Returns the average of the weights.
src/utils.py:75
↓ 1 callers
Function
cifar_iid
Sample I.I.D. client data from CIFAR10 dataset :param dataset: :param num_users: :return: dict of image index
src/sampling.py:145
↓ 1 callers
Function
cifar_noniid
Sample non-I.I.D client data from CIFAR10 dataset :param dataset: :param num_users: :return:
src/sampling.py:161
↓ 1 callers
Function
exp_details
(args)
src/utils.py:87
↓ 1 callers
Method
inference
Returns the inference accuracy and loss.
src/update.py:89
↓ 1 callers
Function
mnist_iid
Sample I.I.D. client data from MNIST dataset :param dataset: :param num_users: :return: dict of image index
src/sampling.py:10
↓ 1 callers
Function
mnist_noniid_unequal
Sample non-I.I.D client data from MNIST dataset s.t clients have unequal amount of data :param dataset: :param num_users: :return
src/sampling.py:55
↓ 1 callers
Method
train_val_test
Returns train, validation and test dataloaders for a given dataset and user indexes.
src/update.py:36
↓ 1 callers
Method
update_weights
(self, model, global_round)
src/update.py:54
Method
__getitem__
(self, item)
src/update.py:21
Method
__init__
(self, args)
src/models.py:28
Method
__init__
(self, args)
src/models.py:47
Method
__init__
(self, args)
src/models.py:70
Method
__init__
(self, input_size, n_classes=10, **kwargs)
src/models.py:89
Method
__init__
(self, dataset, idxs)
src/update.py:14
Method
__init__
(self, args, dataset, idxs, logger)
src/update.py:27
Method
__len__
(self)
src/update.py:18
Method
forward
(self, x)
src/models.py:18
Method
forward
(self, x)
src/models.py:36
Method
forward
(self, x)
src/models.py:61
Method
forward
(self, x)
src/models.py:79
Method
forward
(self, x)
src/models.py:103