nvflare.app_common.abstract.persistor_filter module

class PersistorFilter[source]

Bases: FLComponent

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.

process_post_get(learnable: Learnable, fl_ctx: FLContext) Learnable[source]

Filter process applied to the Learnable object after it was returned in ModelPersistor’s get() call.

Parameters:
  • learnable – Learnable

  • fl_ctx – FLContext

Returns:

a Learnable object

process_post_load(learnable: Learnable, fl_ctx: FLContext) Learnable[source]

Filter process applied to the Learnable object after it was loaded in ModelPersistor’s load() call.

Parameters:
  • learnable – Learnable

  • fl_ctx – FLContext

Returns:

a Learnable object

process_post_save(learnable: Learnable, fl_ctx: FLContext) Learnable[source]

Filter process applied to the Learnable object after it’s being saved in ModelPersistor’s save() call.

Parameters:
  • learnable – Learnable

  • fl_ctx – FLContext

Returns:

a Learnable object

process_pre_save(learnable: Learnable, fl_ctx: FLContext) Learnable[source]

Filter process applied to the Learnable object before its being saved in ModelPersistor’s save() call.

Parameters:
  • learnable – Learnable

  • fl_ctx – FLContext

Returns:

a Learnable object