flip.nvflare.components.flip_analytics_bridge

Classes

FlipAnalyticsBridge

Translates NVFLARE analytics events fired by Client API scripts into

Module Contents

class flip.nvflare.components.flip_analytics_bridge.FlipAnalyticsBridge

Bases: nvflare.apis.fl_component.FLComponent

Translates NVFLARE analytics events fired by Client API scripts into FLIP’s FlipEvents.SEND_RESULT federated events.

Trainer scripts written against the NVFLARE Client API publish metrics through SummaryWriter / flare.log. The InProcessClientAPIExecutor forwards those records onto the client process as ANALYTIC_EVENT_TYPE events. This widget rewraps each record as a DataKind.METRICS DXO and re-fires it under FlipEvents.SEND_RESULT with federation scope, so the server-side controller (ScatterAndGather) keeps receiving metrics through the same pipeline that send_metrics_value used to drive.

handle_event(event_type: str, fl_ctx: nvflare.apis.fl_context.FLContext) None