Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cugzj/KT-pFL
/ functions
Functions
149 in github.com/cugzj/KT-pFL
⨍
Functions
149
◇
Types & classes
30
Method
__init__
(self, in_channels, out_channels, stride, t=6, num_classes=100)
src/model.py:257
Method
__init__
(self, num_classes=10)
src/model.py:288
Method
__init__
(self, in_channels, out_channels, stride)
src/model.py:375
Method
__init__
(self, ratio=1, num_classes=10)
src/model.py:434
Method
__len__
(self)
src/data_utils.py:32
Method
__len__
(self)
src/data_utils.py:49
Function
batch_data
data is a dict := {'x': [numpy array], 'y': [numpy array]} (on one client) returns x, y, which are both numpy array of length: batch_size
src/model_utils.py:30
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
Method
forward
(self,x)
src/new_model.py:18
Method
forward
(self, x)
src/new_model.py:32
Method
forward
(self, x)
src/new_model.py:49
Method
forward
(self, x)
src/new_model.py:91
Method
forward
(self, x)
src/new_model.py:119
Method
forward
(self, x)
src/new_model.py:165
Method
forward
(self, x)
src/new_model.py:243
Method
forward
(self, x)
src/new_model.py:281
Method
forward
(self, x)
src/new_model.py:383
Method
forward
(self, x)
src/new_model.py:430
Method
forward
(self, x)
src/model.py:15
Method
forward
(self, x)
src/model.py:33
Method
forward
(self,x)
src/model.py:59
Method
forward
(self, x)
src/model.py:73
Method
forward
(self, x)
src/model.py:90
Method
forward
(self, x)
src/model.py:108
Method
forward
(self, x)
src/model.py:148
Method
forward
(self, x)
src/model.py:189
Method
forward
(self, x)
src/model.py:235
Method
forward
(self, x)
src/model.py:277
Method
forward
(self, x)
src/model.py:315
Method
forward
(self, x)
src/model.py:417
Method
forward
(self, x)
src/model.py:464
Function
generate_EMNIST_writer_based_data
(X, y, writer_info, N_priv_data_min = 30, N_parties = 5, classes_in_use
src/data_utils.py:275
Function
generate_imbal_CIFAR_private_data
(X, y, y_super, classes_per_party, N_parties, samples_per_class=7)
src/data_utils.py:320
Function
get_batch_sample
(data, batch_size)
src/model_utils.py:65
Function
get_random_batch_sample
(data_x, data_y, batch_size)
src/model_utils.py:52
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:9
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
Function
mobilenetv2
(num_classes=10)
src/new_model.py:309
Function
mobilenetv2
(num_classes=10)
src/model.py:343
Function
partitionOfK
(numbers, start, end, k)
src/engine_cos.py:97
Function
plot
(name,x)
src/plot_data.py:15
Function
plot_save
(name,x,save_path)
src/plot_data.py:6
Function
shufflenetv2
(num_classes=10)
src/new_model.py:452
Function
shufflenetv2
(num_classes=10)
src/model.py:486
Function
suffer_data
(data)
src/model_utils.py:19
Function
train_models
Train an array of models on the same dataset. We use early termination to speed up training.
src/engine_topk.py:206
Function
train_models
Train an array of models on the same dataset. We use early termination to speed up training.
src/engine_kt_pfl.py:217
Function
train_models
Train an array of models on the same dataset. We use early termination to speed up training.
src/engine_cos.py:232
Function
train_models
Train an array of models on the same dataset. We use early termination to speed up training.
src/engine_normal.py:136
← previous
101–149 of 149, ranked by callers