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

StopLearning command.

class p2pfl.communication.commands.message.stop_learning_command.StopLearningCommand(state, aggregator, learner)[source]ΒΆ

Bases: Command

StopLearning command.

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

Execute the command. Start learning thread.

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

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

  • **kwargs – The command keyword arguments.

Return type:

None

static get_name()[source]ΒΆ

Get the command name.

Return type:

str