p2pfl.communication.commands.message.models_agregated_command moduleΒΆ

ModelsAggregated command.

class p2pfl.communication.commands.message.models_agregated_command.ModelsAggregatedCommand(state)[source]ΒΆ

Bases: Command

ModelsAggregated command.

execute(source, round, *args, **kwargs)[source]ΒΆ

Execute the command.

Parameters:
  • source (str) – The source of the command.

  • round (int) – The round of the command.

  • *args – List of models that contribute to the aggregated model.

  • **kwargs – The command keyword arguments.

Return type:

None

static get_name()[source]ΒΆ

Get the command name.

Return type:

str