add(layer=’dense’)#
- Net.add(layer, options)
Fully-connected (dense) layer.
See also
For documentation for the rest of the parameters, see
Net.add
- Options:
- neuronsint
The number of neurons in the layer.
- input_shapetuple or None, default None
The expected input shape of the dense layer. It must be specified if this is the first layer in the network.
- kernel_initializerstr, default ‘glorot_uniform’
Weight initialization method. Should be one of ‘uniform’, ‘glorot_uniform’, ‘he_uniform’, ‘normal’, ‘glorot_normal’, ‘he_normal’, ‘zeros’.
- bias_initializerstr, default ‘zeros’
Bias initialization method. Should be one of ‘uniform’, ‘glorot_uniform’, ‘he_uniform’, ‘normal’, ‘glorot_normal’, ‘he_normal’, ‘zeros’.