cerebral.layers.dense(units, activation, regularizer=None, regularizer_rate=None, max_norm=None)[source]

Helper function which creates a dense layer.

Parameters:
units

Number of nodes in the layer.

activation

Activation function to use in the layer.

regularizer=None

Enable regularization on the layer, using either “l1”, “l2”, or “l1l2”.

max_norm=None

Enable the max norm constraint.


Last update: Feb 09, 2023