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:
-
(layerslist[BaseAugmentation]) –List of augmentation layers to choose from.
-
(batchwisebool, 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.