flip.nvflare.components.validation_json_generator ================================================= .. py:module:: flip.nvflare.components.validation_json_generator Classes ------- .. autoapisummary:: flip.nvflare.components.validation_json_generator.ValidationJsonGenerator Module Contents --------------- .. py:class:: ValidationJsonGenerator(results_dir=AppConstants.CROSS_VAL_DIR, json_file_name=PTConstants.CrossValResultsJsonFilename) Bases: :py:obj:`nvflare.apis.fl_component.FLComponent` Handles VALIDATION_RESULT_RECEIVED event and generates a results.json containing accuracy of each validated model. :param results_dir: Name of the results directory. Defaults to cross_site_val :type results_dir: str, optional :param json_file_name: Name of the json file. Defaults to cross_val_results.json :type json_file_name: str, optional .. py:method:: handle_evaluation_events(event_type: str, fl_ctx: nvflare.apis.fl_context.FLContext)