flip.nvflare.components.flip_analytics_bridge
Classes
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.FLComponentTranslates NVFLARE analytics events fired by Client API scripts into FLIP’s
FlipEvents.SEND_RESULTfederated events.Trainer scripts written against the NVFLARE Client API publish metrics through
SummaryWriter/flare.log. TheInProcessClientAPIExecutorforwards those records onto the client process asANALYTIC_EVENT_TYPEevents. This widget rewraps each record as aDataKind.METRICSDXO and re-fires it underFlipEvents.SEND_RESULTwith federation scope, so the server-side controller (ScatterAndGather) keeps receiving metrics through the same pipeline thatsend_metrics_valueused to drive.- handle_event(event_type: str, fl_ctx: nvflare.apis.fl_context.FLContext) None