Module data_preprocess.fl_dataset
Expand source code
#!/usr/bin/env python3
from torch.utils.data import Dataset
class FLDataset(Dataset):
"""
Base class for Federated Datasets with pointers to clients.
"""
def set_client(self, index=None):
raise NotImplementedError
def load_data(self):
raise NotImplementedError
Classes
class FLDataset-
Base class for Federated Datasets with pointers to clients.
Expand source code
class FLDataset(Dataset): """ Base class for Federated Datasets with pointers to clients. """ def set_client(self, index=None): raise NotImplementedError def load_data(self): raise NotImplementedErrorAncestors
- torch.utils.data.dataset.Dataset
- typing.Generic
Methods
def load_data(self)-
Expand source code
def load_data(self): raise NotImplementedError def set_client(self, index=None)-
Expand source code
def set_client(self, index=None): raise NotImplementedError