nvflare.app_common.abstract.statistics_writer module

class StatisticsWriter[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 save(data: dict, overwrite_existing: bool, fl_ctx: FLContext)[source]

Save data.

To perform data privacy min_count check, failure_count is always required.

  • data – the data to be saved

  • overwrite_existing – whether or not to overwrite existing

  • fl_ctx – FLContext

Returns: None