nvflare.app_common.workflows.cyclic module

class Cyclic(*args, num_clients: int = 2, num_rounds: int = 5, start_round: int = 0, **kwargs)[source]

Bases: ModelController

The Cyclic ModelController to implement the Cyclic Weight Transfer (CWT) algorithm.

Parameters:
  • num_clients (int, optional) – The number of clients. Defaults to 2.

  • num_rounds (int, optional) – The total number of training rounds. Defaults to 5.

  • start_round (int, optional) – The starting round number. Defaults to 0

run() None[source]

Main run routine for the controller workflow.