flip.nvflare.components.validation_json_generator
Classes
Stock NVFLARE |
Module Contents
- class flip.nvflare.components.validation_json_generator.ValidationJsonGenerator
Bases:
nvflare.app_common.widgets.validation_json_generator.ValidationJsonGeneratorStock NVFLARE
ValidationJsonGenerator, dispatched manually by FLIP’s ServerEventHandler.Subclasses
nvflare.app_common.widgets.validation_json_generator.ValidationJsonGeneratorso the results accumulation (METRICS and COLLECTION / T2 leaf handling), numpy-float JSON encoding and path-safe output track upstream instead of a drifting vendored copy (the fork had only the METRICS branch and a plainjson.dump). The defaultresults_dir/json_file_nameare identical to stock, so the constructor is inherited unchanged.The only FLIP-specific behaviour is dispatch. NVFLARE would auto-handle events through
handle_event; FLIP instead routes them throughServerEventHandler, which callshandle_evaluation_events. Because this component is still registered (so itshandle_eventis auto-fired for every event),handle_eventis suppressed here — otherwise each validation result would be recorded twice — and the real work is delegated to stock’s implementation fromhandle_evaluation_events.- handle_event(event_type: str, fl_ctx: nvflare.apis.fl_context.FLContext) None
- handle_evaluation_events(event_type: str, fl_ctx: nvflare.apis.fl_context.FLContext) None
FLIP integration point — ServerEventHandler dispatches events here, not via handle_event.