p2pfl.communication.commands.message.start_learning_command moduleΒΆ
StartLearning command.
- class p2pfl.communication.commands.message.start_learning_command.StartLearningCommand(start_learning_fn)[source]ΒΆ
Bases:
CommandStartLearning command.
- Parameters:
start_learning_fn (
Callable[[int,int,int,str],None])
- execute(source, round, learning_rounds=None, learning_epochs=None, trainset_size=None, experiment_name=None, **kwargs)[source]ΒΆ
Execute the command. Start learning thread.
- Parameters:
source (
str) β The source of the command.round (
int) β The round of the command.trainset_size (
int|None) β The size of the trainset.learning_rounds (
int|None) β The number of learning rounds.learning_epochs (
int|None) β The number of learning epochs.experiment_name (
str|None) β The name of the experiment.**kwargs β The command keyword arguments.
- Return type:
None