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

StartLearning command.

class p2pfl.communication.commands.message.start_learning_command.StartLearningCommand(start_learning_fn)[source]ΒΆ

Bases: Command

StartLearning command.

execute(source, round, learning_rounds=None, learning_epochs=None, **kwargs)[source]ΒΆ

Execute the command. Start learning thread.

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

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

  • learning_rounds (Optional[int]) – The number of learning rounds.

  • learning_epochs (Optional[int]) – The number of learning epochs.

  • **kwargs – The command keyword arguments.

Return type:

None

static get_name()[source]ΒΆ

Get the command name.

Return type:

str