nvflare.app_common.psi.file_psi_writer module

class FilePSIWriter(output_path: str)[source]

Bases: PSIWriter

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.

get_output_path(fl_ctx: FLContext) str[source]
save(intersection: List[str], overwrite_existing, fl_ctx: FLContext)[source]

Saves PSI intersection.

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

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

  • fl_ctx – (FLContext)