클라이언트

class Client[소스]

기반 클래스: ABC

Abstract base class for Flower clients.

메소드

evaluate(ins)

Evaluate the provided parameters using the locally held dataset.

fit(ins)

Refine the provided parameters using the locally held dataset.

get_parameters(ins)

Return the current local model parameters.

get_properties(ins)

Return set of client's properties.

to_client()

Return client (itself).

evaluate(ins: EvaluateIns) EvaluateRes[소스]

Evaluate the provided parameters using the locally held dataset.

매개변수:

ins (EvaluateIns) – The evaluation instructions containing (global) model parameters received from the server and a dictionary of configuration values used to customize the local evaluation process.

반환:

The evaluation result containing the loss on the local dataset and other details such as the number of local data examples used for evaluation.

반환 형식:

EvaluateRes

fit(ins: FitIns) FitRes[소스]

Refine the provided parameters using the locally held dataset.

매개변수:

ins (FitIns) – The training instructions containing (global) model parameters received from the server and a dictionary of configuration values used to customize the local training process.

반환:

The training result containing updated parameters and other details such as the number of local training examples used for training.

반환 형식:

FitRes

get_parameters(ins: GetParametersIns) GetParametersRes[소스]

Return the current local model parameters.

매개변수:

ins (GetParametersIns) – The get parameters instructions received from the server containing a dictionary of configuration values.

반환:

The current local model parameters.

반환 형식:

GetParametersRes

get_properties(ins: GetPropertiesIns) GetPropertiesRes[소스]

Return set of client’s properties.

매개변수:

ins (GetPropertiesIns) – The get properties instructions received from the server containing a dictionary of configuration values.

반환:

The current client properties.

반환 형식:

GetPropertiesRes

to_client() Client[소스]

Return client (itself).