nvflare.app_common.abstract.learnable_persistor module

class LearnablePersistor[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 load(fl_ctx: FLContext) Learnable[source]

Load the Learnable object.


fl_ctx – FLContext


Learnable object loaded

abstract save(learnable: Learnable, fl_ctx: FLContext)[source]

Persist the Learnable object.

  • learnable – the Learnable object to be saved

  • fl_ctx – FLContext