p2pfl.communication.commands.weights.init_model_command moduleΒΆ

InitModel command.

class p2pfl.communication.commands.weights.init_model_command.InitModelCommand(state, stop, aggregator, learner)[source]ΒΆ

Bases: Command

InitModelCommand.

Parameters:
execute(source, round, weights=None, **kwargs)[source]ΒΆ

Execute the command.

Parameters:
  • source (str)

  • round (int)

  • weights (bytes | None)

Return type:

None

static get_name()[source]ΒΆ

Get the command name.

Return type:

str