blazefl.core.BaseClientTrainer#
- class blazefl.core.BaseClientTrainer(*args, **kwargs)[source]#
Bases:
Protocol
[UplinkPackage
,DownlinkPackage
]Abstract base class for serial client training in federated learning.
This class defines the interface for training clients in a serial manner, where each client is processed one after the other.
- Raises:
NotImplementedError – If the methods are not implemented in a subclass.
- __init__(*args, **kwargs)#
Methods
__init__
(*args, **kwargs)local_process
(payload, cid_list)Process the downlink payload from the server for a list of client IDs.
Prepare the data package to be sent from the client to the server.