MCPcopy Create free account
hub / github.com/TalwalkarLab/leaf / train

Method train

models/client.py:14–41  ·  view source on GitHub ↗

Trains on self.model using the client's train_data. Args: num_epochs: Number of epochs to train. Unsupported if minibatch is provided (minibatch has only 1 epoch) batch_size: Size of training batches. minibatch: fraction of client's data to apply minibatc

(self, num_epochs=1, batch_size=10, minibatch=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected