Principle:Snorkel team Snorkel Augmentation Policy Configuration
| Knowledge Sources | |
|---|---|
| Domains | Data_Augmentation, Sampling |
| Last Updated | 2026-02-14 20:00 GMT |
Overview
A strategy for configuring how transformation functions are sampled and sequenced to generate augmented data points.
Description
Augmentation Policy Configuration determines how transformation functions are combined and applied during data augmentation. A policy controls:
- Selection: Which TFs to apply to each data point
- Sequencing: How many TFs to chain in sequence
- Repetition: How many augmented copies to generate per original
- Retention: Whether to keep original data points in the output
Two main policy types are supported:
- RandomPolicy: Uniformly samples TF sequences at random
- MeanFieldPolicy: Samples TFs with user-specified probabilities (allowing weighted selection)
Usage
Use this principle after defining transformation functions and before applying them. Choose RandomPolicy for uniform exploration of augmentations, or MeanFieldPolicy when some TFs should be applied more frequently than others.
Theoretical Basis
A policy defines a distribution over TF sequences:
where is the sequence length. For MeanFieldPolicy with parameters
For RandomPolicy: for all .