API overview¶
In this page you can find the list of modules/submodules defined in fluke
with their classes and functions.
fluke
¶
Classes
A dictionary that can be accessed with dot notation recursively. |
|
Global settings for |
|
Subject class for the observer pattern. |
|
This metaclass is used to create singleton classes. |
fluke.data
¶
Classes
Container for train and test data. |
|
DataContainer designed for those datasets with a fixed data assignments, e.g., FEMNIST, Shakespeare and FCUBE. |
|
A DataLoader-like object for a set of tensors that can be much faster than TensorDataset + DataLoader because dataloader grabs individual indices of the dataset and calls cat (slow). |
|
Utility class for splitting the data across clients. |
Submodules
This module contains the |
|
|
This module contains utility classes for loading datasets. |
fluke.client
¶
Classes
fluke.server
¶
Classes
Basic Server for Federated Learning. |
fluke.comm
¶
Classes
This class represents a message that can be exchanged between clients and the server. |
|
A bi-directional communication channel. |
|
Channel observer interface for the Observer pattern. |
fluke.nets
¶
Classes
Encoder (aka backbone) + Head Network [Base Class] This type of networks are defined as two subnetworks, where one is meant to be the encoder/backbone network that learns a latent representation of the input, and the head network that is the classifier part of the model. |
|
Global-Local Network (Abstract Class). |
|
This implementation of the Global-Local Network ( |
|
This implementation of the Global-Local Network ( |
|
Multi-layer Perceptron for MNIST. |
|
Convolutional Neural Network for MNIST. |
|
Convolutional Neural Network with Batch Normalization for CIFAR-10. |
|
Logistic Regression for MNIST. |
|
Convolutional Neural Network for CIFAR-10. |
|
ResNet-9 network for CIFAR-100 classification. |
|
Convolutional Neural Network for FEMNIST. |
|
VGG-9 network for FEMNIST classification. |
|
ResNet-18 network as defined in the torchvision library. |
|
ResNet-34 network as defined in the torchvision library. |
|
ResNet-50 network as defined in the torchvision library. |
|
ResNet-18 network as defined in the torchvision library but with Group Normalization layers instead of Batch Normalization. |
|
Convolutional Neural Network for CIFAR-10. |
fluke.utils
¶
Classes
This class is used to configure the optimizer and the learning rate scheduler. |
|
Fluke configuration class. |
|
Client observer interface. |
|
Server observer interface. |
Functions
|
Import a module from its name. |
|
Get a class from its name. |
|
Get a loss function from its name. |
|
Get a model from its name. |
|
Get a learning rate scheduler from its name. |
|
Clear the CUDA cache. |
|
Get the fully qualified name of a class. |
Submodules
fluke.evaluation
¶
Classes
This class is the base class for all evaluators in |
|
Evaluate a PyTorch model for classification. |
fluke.algorithms
¶
Classes
Centralized Federated Learning algorithm. |
|
Personalized Federated Learning algorithm. |
Submodules
Implementation of the APFL [APFL20] algorithm. |
|
Implementation of the CCVR [CCVR21] algorithm. |
|
Implementation of the DITTO [Ditto21] algorithm. |
|
Implementation of the FedALA [FedALA23] algorithm. |
|
Implementation of the FedAMP [FedAMP21] algorithm. |
|
Implementation of the Federated Averaging [FedAVG17] algorithm. |
|
Implementation of the Federated Averaging with momentum [FedAVGM19] algorithm. |
|
Implementation of the Federated Averaging with Spreadout [FedAwS20] algorithm. |
|
Implementation of the Federated Averaging with Body Aggregation and Body Update [FedBABU22] algorithm. |
|
Implementation of the FedBN [FedBN21] algorithm. |
|
Implementation of the FedDyn [FedDyn21] algorithm. |
|
Implementation of the FedExP [FedExP23] algorithm. |
|
Implementation of the FedHP: Federated Learning with Hyperspherical Prototypical Regularization [FedHP24] algorithm. |
|
Implementation of the [FedLC22] algorithm. |
|
Implementation of the [FedNH23] algorithm. |
|
Implementation of the [FedNova21] algorithm. |
|
Implementation of the [FedOpt21] algorithm. |
|
Implementation of the [FedPer19] algorithm. |
|
Implementation of the FedProto [FedProto22] algorithm. |
|
Implementation of the [FedProx18] algorithm. |
|
Implementation of the [FedRep21] algorithm. |
|
Implementation of the FedROD [FedROD22] algorithm. |
|
Implementation of the [FedRS21] algorithm. |
|
Implementation of the [FedSAM22] algorithm. |
|
Implementation of the [FedSGD17] algorithm. |
|
Implementation of the [LG-FedAVG20] algorithm. |
|
Implementation of the [Moon21] algorithm. |
|
Implementation of the [Per-FedAVG20] algorithm. |
|
Implementation of the [pFedMe20] algorithm. |
|
Implementation of the [SCAFFOLD20] algorithm. |
|
Implementation of the [SuPerFed22] algorithm. |