Skip to content

declearn.communication.messaging.TrainRequest

Bases: Message

Server-emitted request to participate in a training round.

Source code in declearn/communication/messaging/_messages.py
227
228
229
230
231
232
233
234
235
236
237
238
239
@dataclasses.dataclass
class TrainRequest(Message):
    """Server-emitted request to participate in a training round."""

    typekey = "train_request"

    round_i: int
    weights: Vector
    aux_var: Dict[str, Dict[str, Any]]
    batches: Dict[str, Any]
    n_epoch: Optional[int] = None
    n_steps: Optional[int] = None
    timeout: Optional[int] = None