nvflare.private.fed.tbi module

class TBI[source]

Bases: FLComponent

(TBI) Task Based Interaction is the base class for ServerRunner and ClientRunner that implement details of task based interactions.

TBI implements common behavior of ServerRunner and ClientRunner.

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.

check_end_run_readiness(fl_ctx: FLContext)[source]

Check with all components for their readiness to end run

Parameters:

fl_ctx – the FL context

Returns:

static get_positive_float_var(var_name, default)[source]
static get_positive_int_var(var_name, default)[source]