openfl.native.native.get_collaborator

openfl.native.native.get_collaborator#

openfl.native.native.get_collaborator(plan, name, model, aggregator)[source]#

Create the collaborator.

Using the same plan object to create multiple collaborators leads to identical collaborator objects. This function can be removed once collaborator generation is fixed in openfl/federated/plan/plan.py

Parameters:
  • plan (Plan) – The plan to use to create the collaborator.

  • name (str) – The name of the collaborator.

  • model (Model) – The model to use for the collaborator.

  • aggregator (Aggregator) – The aggregator to use for the collaborator.

Returns:

The created collaborator.

Return type:

Collaborator