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

Parameters:

data – the data to be saved

:param overwrite_existing :param fl_ctx: FLContext :return: None