Sample module supports random sampling and stratified sampling.
hetero_sync should be set to True for heterogeneous scenario;
replace must be set to True if upsample is needed.
| Sample Type | Federated Heterogeneous | Federated Homogeneous(Local) |
|---|
| By Fraction | ✓ | ✓ |
| By Exact Number | ✓ | ✓ |