nvflare.apis.filter module

class Filter[source]

Bases: FLComponent, ABC

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 process(shareable: Shareable, fl_ctx: FLContext) Shareable[source]

Filter process applied to the Shareable object.

Parameters
  • shareable – shareable

  • fl_ctx – FLContext

Returns

a Shareable object