sampler_sample_stratified
Extract balanced samples from grouped data by selecting a specified number of items from each group for representative analysis.
Instructions
[sampler] Balanced sampling: n_per_group items from each group dict key. Returns {sample: {group: [items]}}.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groups | Yes | ||
| n_per_group | Yes | ||
| seed | No |