in flsim/reducers/weighted_dp_round_reducer.py [0:0]
def _check_boundaries(self):
"""
Checks for min, max, and mean values of config
"""
if (
self.min_weight < 0
or self.max_weight < self.min_weight
or self.mean_weight < self.min_weight
or self.mean_weight > self.max_weight
):
self.logger.error("Weight boundaries in config are not defined properly")
if self.estimator_type == EstimatorType.UNBIASED and self.mean_weight <= 0:
self.logger.error(
"For unbiased sensitivity estimation mean_weight needs to be positive."
)