-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up definition of datasets to differentiate between Distributed …
…and Federated datasets
- Loading branch information
1 parent
4b3128b
commit 45d1017
Showing
12 changed files
with
74 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,19 @@ | ||
from .cifar10 import DistCIFAR10Dataset | ||
from .cifar100 import DistCIFAR100Dataset | ||
from .fashion_mnist import DistFashionMNISTDataset | ||
from .mnist import DistMNISTDataset | ||
from .dataset import DistDataset | ||
from .cifar10 import FedCIFAR10Dataset | ||
from .cifar100 import FedCIFAR100Dataset | ||
from .fashion_mnist import FedFashionMNISTDataset | ||
from .mnist import FedMNISTDataset | ||
from .dataset import FedDataset | ||
from ...util.config.definitions import Dataset | ||
|
||
|
||
def available_fed_datasets(): | ||
return { | ||
Dataset.cifar10: FedCIFAR10Dataset, | ||
Dataset.cifar100: FedCIFAR100Dataset, | ||
Dataset.fashion_mnist: FedFashionMNISTDataset, | ||
Dataset.mnist: FedMNISTDataset | ||
} | ||
|
||
|
||
def get_fed_dataset(name: Dataset): | ||
return available_fed_datasets()[name] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters