autoqild.classifiers.layers¶
A custom dense layer with batch normalization and optional pre-activation normalization.
Classes
|
A custom dense layer with batch normalization and optional pre- activation normalization. |
- class autoqild.classifiers.layers.NormalizedDense(*args, **kwargs)[source]¶
Bases:
LayerA custom dense layer with batch normalization and optional pre- activation normalization.
- Parameters:
units (int) – Positive integer, dimensionality of the output space.
activation (str, optional) – Activation function to use (default is relu). If not specified, no activation is applied (i.e., “linear”).
normalize_before_activation (bool, optional) – If True, normalizes the inputs before applying the activation function. If False, applies activation before batch normalization.
**kwd (dict) – Additional keyword arguments to pass to the Dense layer.
- dense¶
Dense layer instance.
- Type:
keras.layers.Dense
- activation¶
Activation function to be applied.
- Type:
keras.layers.Activation
- batchnorm¶
Batch normalization layer.
- Type:
keras.layers.BatchNormalization
- norm_layer¶
Normalization layer if specified.
- Type:
keras.layers.Layer or None