(self, clients_to_test, set_to_use='test')
return metrics
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'].
Tests self.model on given clients.
Tests self . model on given clients .
def test_model(self, clients_to_test, set_to_use='test'):
        """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'].
        """
        metrics = {}

        if clients_to_test is None:
            clients_to_test = self.selected_clients

        for client in clients_to_test:
            client.model.set_params(self.model)
            c_metrics = client.test(set_to_use)
            metrics[client.id] = c_metrics
        
        return metrics
def test_model ( self , clients_to_test , set_to_use = 'test' ) : metrics = { } if clients_to_test is None : clients_to_test = self . selected_clients for client in clients_to_test : client . model . set_params ( self . model ) c_metrics = client . test ( set_to_use ) metrics [ client . id ] = c_metrics return metrics