nvflare.app_common.psi.psi_writer_spec module

class PSIWriter[source]

Bases: FLComponent, ABC

Interface for saving PSI intersection.

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 save(intersection: List[str], overwrite_existing: bool, fl_ctx: FLContext)[source]

Saves PSI intersection.

  • intersection – (List[str]) - Intersection to be saved

  • overwrite_existing – (bool) overwrite the existing one if true

  • fl_ctx – (FLContext)