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.

Parameters:

fl_ctx – FLContext

Returns:

Learnable object loaded

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

Persist the Learnable object.

Parameters:
  • learnable – the Learnable object to be saved

  • fl_ctx – FLContext