nvflare.edge.assessors.count module
- class CountAssessor(shareable_generator_id: str, aggregator_id: str, persistor_id: str, min_count: int, max_count: int, timeout: float)[source]
Bases:
SGAPAssessorThis assessor implements its required logic by using a Shareable Generator, an Aggregator, and a Persistor (SGAP).
- Parameters:
shareable_generator_id – component ID of the Shareable Generator. If empty, the PassthroughShareableGenerator will be used.
aggregator_id – component ID of the Aggregator.
persistor_id – component ID of the Persistor. If not specified, the Persistor will load initial model and save the final model.
- do_assessment(fl_ctx: FLContext) Assessment[source]