rztdl.dl.components.layers.dropout package

Submodules

rztdl.dl.components.layers.dropout.gaussian_dropout module

@created on: 2020-01-30,
@author: shubham,
@version: v0.0.1

Description:

Sphinx Documentation Status: Complete

class rztdl.dl.components.layers.dropout.gaussian_dropout.GaussianDropout(name: str, rate: float, inputs: typing.Union[str, tensorflow.python.framework.ops.Tensor] = None, outputs: str = None)[source]

Bases: tensorflow.python.keras.layers.noise.GaussianDropout, rztdl.dl.components.layers.layer.Layer

Apply multiplicative 1-centered Gaussian noise

Parameters:
  • name (str) – Name of component
  • rate (float) – drop probability (as with Dropout). The multiplicative noise will have standard deviation sqrt(rate / (1 - rate))
  • inputs (Union[str, Tensor, None]) – Input component/tensor
  • outputs (Optional[str]) – Output name
create(inputs)[source]
parameter_validation()[source]
validate(inputs)[source]

rztdl.dl.components.layers.dropout.spatial_dropout1d module

@created on: 2020-01-30,
@author: shubham,
@version: v0.0.1

Description:

Sphinx Documentation Status: Complete

class rztdl.dl.components.layers.dropout.spatial_dropout1d.SpatialDropout1D(name: str, rate: float, inputs: typing.Union[str, tensorflow.python.framework.ops.Tensor] = None, outputs: str = None)[source]

Bases: tensorflow.python.keras.layers.core.SpatialDropout1D, rztdl.dl.components.layers.layer.Layer

Spatial 1D version of Dropout.

Parameters:
  • name (str) – Name of component
  • rate (float) – drop probability (as with Dropout). The multiplicative noise will have standard deviation sqrt(rate / (1 - rate))
  • inputs (Union[str, Tensor, None]) – Input component/tensor
  • outputs (Optional[str]) – Output name
create(inputs)[source]
parameter_validation(rate, name)[source]
validate(inputs)[source]

rztdl.dl.components.layers.dropout.spatial_dropout2d module

@created on: 2020-01-30,
@author: shubham,
@version: v0.0.1

Description:

Sphinx Documentation Status: Complete

class rztdl.dl.components.layers.dropout.spatial_dropout2d.SpatialDropout2D(name: str, rate: float, data_format: rztdl.dl.constants.string_constants.DataFormat = <DataFormat.CHANNELS_LAST: 'CHANNELS_LAST'>, inputs: typing.Union[str, tensorflow.python.framework.ops.Tensor] = None, outputs: str = None)[source]

Bases: tensorflow.python.keras.layers.core.SpatialDropout2D, rztdl.dl.components.layers.layer.Layer

Spatial 2D version of Dropout.

Parameters:
  • name (str) – Name of component
  • rate (float) – drop probability (as with Dropout). The multiplicative noise will have standard deviation sqrt(rate / (1 - rate))
  • data_format (DataFormat) – ‘CHANNELS_FIRST’ / ‘CHANNELS_LAST’ In ‘CHANNELS_FIRST’ mode, the channels dimension (the depth) is at index 1 In ‘CHANNELS_LAST’ mode is it at index 3.
  • inputs (Union[str, Tensor, None]) – Input component/tensor
  • outputs (Optional[str]) – Output name
create(inputs)[source]
parameter_validation(rate, name)[source]
validate(inputs)[source]

rztdl.dl.components.layers.dropout.spatial_dropout3d module

@created on: 2020-01-30,
@author: shubham,
@version: v0.0.1

Description:

Sphinx Documentation Status: Complete

class rztdl.dl.components.layers.dropout.spatial_dropout3d.SpatialDropout3D(name: str, rate: float, data_format: rztdl.dl.constants.string_constants.DataFormat = <DataFormat.CHANNELS_LAST: 'CHANNELS_LAST'>, inputs: typing.Union[str, tensorflow.python.framework.ops.Tensor] = None, outputs: str = None)[source]

Bases: tensorflow.python.keras.layers.core.SpatialDropout3D, rztdl.dl.components.layers.layer.Layer

Spatial 3D version of Dropout.

Parameters:
  • name (str) – Name of component
  • rate (float) – drop probability (as with Dropout). The multiplicative noise will have standard deviation sqrt(rate / (1 - rate))
  • data_format (DataFormat) – ‘CHANNELS_FIRST’ / ‘CHANNELS_LAST’ In ‘CHANNELS_FIRST’ mode, the channels dimension (the depth) is at index 1 In ‘CHANNELS_LAST’ mode is it at index 3.
  • inputs (Union[str, Tensor, None]) – Input component/tensor
  • outputs (Optional[str]) – Output name
create(inputs)[source]
parameter_validation(rate, name)[source]
validate(inputs)[source]

Module contents

@created on: 2020-01-30,
@author: shubham,
@version: v0.0.1

Description:

Sphinx Documentation Status: Complete