MCPcopy Index your code
hub / github.com/TalwalkarLab/leaf / train_model

Method train_model

models/server.py:31–68  ·  view source on GitHub ↗

Trains self.model on given clients. Trains model on self.selected_clients if clients=None; each client's data is trained with the given number of epochs and batches. Args: clients: list of Client objects. num_epochs: Number of epochs

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

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.95

Calls 2

set_paramsMethod · 0.80
trainMethod · 0.45

Tested by

no test coverage detected