nvflare.job_config.stats_job module

class StatsJob(job_name: str, statistic_configs: dict, stats_generator: Statistics, output_path: str, min_count: int = 10, min_noise_level=0.1, max_noise_level=0.3, max_bins_percent=10)[source]

Bases: FedJob

FedJob allows users to generate job configurations in a Pythonic way. The to() routine allows users to send different components to either the server or clients.

Parameters:
  • name – the name of the NVFlare job

  • min_clients – the minimum number of clients for the job

  • mandatory_clients – mandatory clients to run the job (optional)

add_privacy_result_filters(site_id: str)[source]
get_stats_controller() StatisticsController[source]
get_stats_output_writer()[source]
setup_client(sites: List[str])[source]
setup_server()[source]