Skip to content

← deep_learning package

MultiplicativeNoiseAugmentation

Scale the given data by noise drawn from some provided distribution.

The node can optionally use the same scale across all elements along an axis, or draw an independent scale. It is recommended for the distribution to be centered around 1, this is not enforced. A good starting point is a normal or truncated normal distribution with mean of 1 and standard deviation of 0.1, yielding a scale range of 0.9 to 1.1, but the actual range should be experimented with to find a good regime that reflects the variability due to the sensors used. Like most augmentation nodes, this node does not by itself amplify the amount of data, which therefore has to be done beforehand using, for example, the RepeatAlongAxis node. Also As with most augmentation nodes, you need to wire in a random seed (for example using the DrawRandomSeed node, see docs for more info) to ensure reproducibility. You also need to wire a distribution to the dist input to specify the distribution of interest (e.g., NormalDistribution). Version 1.0.1

Ports/Properties

data

Data to process.

  • verbose name: Data
  • default value: None
  • port type: DataPort
  • value type: Packet (can be None)
  • data direction: INOUT

seed

Random seed for deterministic results.

  • verbose name: Seed
  • default value: None
  • port type: DataPort
  • value type: AnyArray (can be None)
  • data direction: IN

dist

Distribution to use.

  • verbose name: Dist
  • default value: None
  • port type: DataPort
  • value type: Distribution (can be None)
  • data direction: IN

is_training

Whether the node is used in training mode.

  • verbose name: Is Training
  • default value: None
  • port type: DataPort
  • value type: bool (can be None)
  • data direction: IN

separate_across

A comma-separated list of axis name(s) over which to create individual scale values. For example, 'space' will create a random scale value drawn from the input distribution per each channel. If given 'space, feature', random scale values will be created for each space by feature elements (e.g. total values = space elements * feature elements). It is recommended to always include the instance axis, since each instance in a mini-batch should have a different random draw of scales.

  • verbose name: Separate Scales Across Axes
  • default value: space,instance
  • port type: ComboPort
  • value type: str (can be None)

bypass

Whether to bypass the augmentation and pass the input data through unchanged.

  • verbose name: Bypass
  • default value: False
  • port type: BoolPort
  • value type: bool (can be None)

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

  • verbose name: Set Breakpoint (Debug Only)
  • default value: False
  • port type: BoolPort
  • value type: bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

  • verbose name: Metadata
  • default value: {}
  • port type: DictPort
  • value type: dict (can be None)