random_choice
Random Choice Layer API
This module provides classes to build random choice layers.
Classes:
-
RandomChoice
–Random choice
Classes
RandomChoice
Randomly choose one augmentation layer from a list of augmentation layers.
Parameters:
-
layers
(list[BaseAugmentation]
) –List of augmentation layers to choose from.
-
batchwise
(bool
, default:False
) –If True, apply same layer to all samples in the batch.
Source code in neuralspot_edge/layers/preprocessing/random_choice.py
Functions
batch_augment
Apply random layer(s) to the batch
Source code in neuralspot_edge/layers/preprocessing/random_choice.py
get_config
Serializes the configuration of the layer.