def reconnect_client( client: ClientProxy, reconnect: Reconnect ) -> Tuple[ClientProxy, Disconnect]: """Instruct a single client to disconnect and (optionally) reconnect later.""" disconnect = client.reconnect(reconnect) return client, disconnect
def evaluate_client(client: ClientProxy, ins: EvaluateIns) -> Tuple[ClientProxy, EvaluateRes]: """Evaluate parameters on a single client.""" evaluate_res = client.evaluate(ins) return client, evaluate_res
def fit_client(client: ClientProxy, ins: FitIns) -> Tuple[ClientProxy, FitRes]: """Refine parameters on a single client.""" fit_res = client.fit(ins) return client, fit_res