random_channel
Random Channel Layer API
This module provides classes to build random channel layers.
Classes:
-
RandomChannel
–Random channel
Classes
RandomChannel
Randomly picks a single channel from the input samples.
Parameters:
-
batchwise
(bool
, default:False
) –If True, grabs same channel from all samples in batch.
Source code in neuralspot_edge/layers/preprocessing/random_channel.py
Functions
get_random_transformations
Generate random channel index.
Source code in neuralspot_edge/layers/preprocessing/random_channel.py
augment_samples
Augment samples
Source code in neuralspot_edge/layers/preprocessing/random_channel.py
augment_sample
Augment a sample during training.