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

Method test_model

models/server.py:82–101  ·  view source on GitHub ↗

Tests self.model on given clients. Tests model on self.selected_clients if clients_to_test=None. Args: clients_to_test: list of Client objects. set_to_use: dataset to test on. Should be in ['train', 'test'].

(self, clients_to_test, set_to_use='test')

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

print_statsFunction · 0.80

Calls 2

set_paramsMethod · 0.80
testMethod · 0.45

Tested by

no test coverage detected