Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 854 Bytes

sample.md

File metadata and controls

29 lines (23 loc) · 854 Bytes

Federated Sampling

From Fate v0.2 supports sample method. Sample module supports two sample modes: random sample mode and stratified sample mode.

  • In random mode, "downsample" and "upsample" methods are provided. Users can set the sample parameter "fractions", which is the sample ratio within data.

- In stratified mode, "downsample" and "upsample" methods are also provided. Users can set the sample parameter "fractions" too, but it should be a list of tuples in the form (label_i, ratio). Tuples in the list each specify the sample ratio of corresponding label. e.g.

[(0, 1.5), (1, 2.5), (3, 3.5)]