fl4health.client_managers.fixed_without_replacement_manager module¶
- class FixedSamplingByFractionClientManager[source]¶
Bases:
BaseFractionSamplingManager
Overrides the Simple Client Manager to provide Fixed Sampling without replacement for Clients by fraction
- sample_fraction(sample_fraction, min_num_clients=None, criterion=None)[source]¶
Sample a number of Flower ClientProxy instances WITHOUT replacement.
- Parameters:
sample_fraction (float) – Fraction of clients to sample. Guaranteed to produce this fraction from available clients
min_num_clients (int | None, optional) – minimum number of clients required to be available. Defaults to None.
criterion (Criterion | None, optional) – Criterion to help with sampling. No filter is applied if None. Defaults to None.
- Returns:
List of ClientProxy objects representing the selected clients.
- Return type:
list[ClientProxy]