Dense

class dragon.vm.tensorflow.keras.layers.Dense(
  units,
  activation=None,
  use_bias=True,
  kernel_initializer='glorot_uniform',
  bias_initializer='zeros',
  kernel_regularizer=None,
  bias_regularizer=None,
  **kwargs
)[source]

The fully-connected layer.

__init__

Dense.__init__(
  units,
  activation=None,
  use_bias=True,
  kernel_initializer='glorot_uniform',
  bias_initializer='zeros',
  kernel_regularizer=None,
  bias_regularizer=None,
  **kwargs
)[source]

Create a Dense layer.

Parameters:
  • units (int) – The number of output units.
  • activation (Union[callable, str], optional) – The optional activation function.
  • use_bias (bool, optional, default=True) – True to apply a bias.
  • kernel_initializer (Union[callable, str], optional) – The initializer for kernel.
  • bias_initializer (Union[callable, str], optional) – The initializer for bias.
  • kernel_regularizer (Union[callable, str], optional) – The regularizer for kernel.
  • bias_regularizer (Union[callable, str], optional) – The regularizer for bias.