Normalizes a Numpy array.
View aliases
Compat aliases for migration
See Migration guide for more details.
tf.compat.v1.keras.utils.normalize
, `tf.compat.v2.keras.utils.normalize`
tf.keras.utils.normalize(
x, axis=-1, order=2
)
Arguments | |
---|---|
x
|
Numpy array to normalize. |
axis
|
axis along which to normalize. |
order
|
Normalization order (e.g. 2 for L2 norm). |
Returns | |
---|---|
A normalized copy of the array. |