Skip to content
heliaEDGE
Reference
HELIA

base_augmentation

Unified public-Keras hooks for deterministic preprocessing and augmentation.

Machine-readable model

class

Shared construction-time configuration; never validates live tensors.

helia_edge/layers/preprocessing/base_augmentation.py:9

BaseAugmentationParams()

Shared construction-time configuration; never validates live tensors.

class

Base for rank-specific transforms, with one sampling/application contract.

helia_edge/layers/preprocessing/base_augmentation.py:21

BaseAugmentation(
seed=None,
auto_vectorize=False,
data_format=None,
device='cpu',
aligned_targets=None,
aligned_masks=None,
**kwargs={},
)

Base for rank-specific transforms, with one sampling/application contract.

Override augment_samples or augment_sample and optionally get_random_transformations. Sample parameters once per signal batch; joint transforms reuse them across aligned signals, targets and masks. Per-example parameter leaves must have a leading batch axis. Deterministic subclasses set training_only=False. Bases are not serialized transforms.

class

One-dimensional signals with optional batch axis.

helia_edge/layers/preprocessing/base_augmentation.py:241

BaseAugmentation1D(
seed=None,
auto_vectorize=False,
data_format=None,
device='cpu',
aligned_targets=None,
aligned_masks=None,
**kwargs={},
)
class

Two-dimensional images with optional batch axis.

helia_edge/layers/preprocessing/base_augmentation.py:247

BaseAugmentation2D(
seed=None,
auto_vectorize=False,
data_format=None,
device='cpu',
aligned_targets=None,
aligned_masks=None,
**kwargs={},
)