Principle:Snorkel team Snorkel Transformation Application
| Knowledge Sources | |
|---|---|
| Domains | Data_Augmentation, Data_Pipeline |
| Last Updated | 2026-02-14 20:00 GMT |
Overview
A process for applying transformation functions to a dataset according to a configured policy to produce an augmented dataset.
Description
Transformation Application executes transformation functions on each data point following the augmentation policy. For each original data point, the policy generates one or more TF sequences. Each sequence is applied to a copy of the data point, and successful transformations produce new augmented examples.
The process handles:
- Copying data points before transformation (to avoid mutation)
- Chaining multiple TFs in sequence
- Skipping transformations that return None
- Optionally retaining original data points
- Memory-efficient generator mode for large datasets
Usage
Use this principle after defining TFs and configuring an augmentation policy. Apply transformations to generate augmented training data.
Theoretical Basis
Given dataset , TFs , and policy :
For each :
- Sample sequences from
- For each sequence :
- Apply
- If , add to augmented set