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

PartialModelCommand command.

class p2pfl.communication.commands.weights.partial_model_command.PartialModelCommand(state, stop, aggregator, comm_proto, learner)[source]ΒΆ

Bases: Command

PartialModelCommand.

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

Execute the command.

Parameters:
  • source (str)

  • round (int)

  • weights (bytes | None)

  • contributors (list[str] | None)

  • num_samples (int | None)

Return type:

None

static get_name()[source]ΒΆ

Get the command name.

Return type:

str