fl_sim.regularizers.get_regularizer#

fl_sim.regularizers.get_regularizer(reg_type: str, reg_coeff: float = 1.0) Regularizer[source]#

Get the regularizer by name.

Parameters:
  • reg_type (str) – The name of the regularizer.

  • reg_coeff (float, default 1.0) – The coefficient of the regularizer.

Returns:

The regularizer instance.

Return type:

Regularizer