nvflare.app_common.np.np_formatter module

class NPFormatter[source]

Bases: Formatter

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.

format(fl_ctx: FLContext) str[source]

The format function gets validation shareable locations from the dictionary. It loads each shareable, get the validation results and converts it into human-readable string.


fl_ctx (FLContext) – FLContext object.


Human readable validation results.

Return type: