nvflare.app_common.aggregators.assembler module¶
- class Assembler(data_kind: str)[source]¶
Bases:
FLComponent
,ABC
Assembler class for aggregation functionality This defines the functionality of assembling the collected submissions for CollectAndAssembleAggragator
Init FLComponent.
The FLComponent is the base class of all FL Components. (executors, controllers, responders, filters, aggregators, and widgets are all FLComponents)
FLComponents have the capability to handle and fire events and contain various methods for logging.
- abstract assemble(data: Dict[str, dict], fl_ctx: FLContext) dict [source]¶
Assemble the collected submissions. This will be specified according to the specific algorithm E.g. global svm round on the collected local supporting vectors; global k-means step on the local centroids and counts
- Returns:
A dict of parameters to be returned to clients
- property collection¶