| layer_normalization {keras} | R Documentation |
A preprocessing layer which normalizes continuous features.
Description
A preprocessing layer which normalizes continuous features.
Usage
layer_normalization(
object,
axis = -1L,
mean = NULL,
variance = NULL,
invert = FALSE,
...
)
Arguments
object |
What to compose the new
|
axis |
Integer, list of integers, or NULL. The axis or axes that should
have a separate mean and variance for each index in the shape. For
example, if shape is |
mean |
The mean value(s) to use during normalization. The passed value(s)
will be broadcast to the shape of the kept axes above; if the value(s)
cannot be broadcast, an error will be raised when this layer's |
variance |
The variance value(s) to use during normalization. The passed
value(s) will be broadcast to the shape of the kept axes above; if the
value(s) cannot be broadcast, an error will be raised when this layer's
|
invert |
If |
... |
standard layer arguments. |
Details
This layer will shift and scale inputs into a distribution centered around 0
with standard deviation 1. It accomplishes this by precomputing the mean and
variance of the data, and calling (input - mean) / sqrt(var) at runtime.
The mean and variance values for the layer must be either supplied on
construction or learned via adapt(). adapt() will compute the mean and
variance of the data and store them as the layer's weights. adapt() should
be called before fit(), evaluate(), or predict().
See Also
-
https://www.tensorflow.org/api_docs/python/tf/keras/layers/Normalization
-
https://keras.io/api/layers/preprocessing_layers/numerical/normalization
Other numerical features preprocessing layers:
layer_discretization()
Other preprocessing layers:
layer_category_encoding(),
layer_center_crop(),
layer_discretization(),
layer_hashing(),
layer_integer_lookup(),
layer_random_brightness(),
layer_random_contrast(),
layer_random_crop(),
layer_random_flip(),
layer_random_height(),
layer_random_rotation(),
layer_random_translation(),
layer_random_width(),
layer_random_zoom(),
layer_rescaling(),
layer_resizing(),
layer_string_lookup(),
layer_text_vectorization()