__init__.py 954 B

1234567891011121314151617181920212223242526
  1. from easyfl.datasets.data import construct_datasets
  2. from easyfl.datasets.dataset import (
  3. FederatedDataset,
  4. FederatedImageDataset,
  5. FederatedTensorDataset,
  6. FederatedTorchDataset,
  7. TEST_IN_SERVER,
  8. TEST_IN_CLIENT,
  9. )
  10. from easyfl.datasets.simulation import (
  11. data_simulation,
  12. iid,
  13. non_iid_dirichlet,
  14. non_iid_class,
  15. equal_division,
  16. quantity_hetero,
  17. )
  18. from easyfl.datasets.utils.base_dataset import BaseDataset
  19. from easyfl.datasets.femnist import Femnist
  20. from easyfl.datasets.shakespeare import Shakespeare
  21. from easyfl.datasets.cifar10 import Cifar10
  22. from easyfl.datasets.cifar100 import Cifar100
  23. __all__ = ['FederatedDataset', 'FederatedImageDataset', 'FederatedTensorDataset', 'FederatedTorchDataset',
  24. 'construct_datasets', 'data_simulation', 'iid', 'non_iid_dirichlet', 'non_iid_class',
  25. 'equal_division', 'quantity_hetero', 'BaseDataset', 'Femnist', 'Shakespeare', 'Cifar10', 'Cifar100']