Learn R Programming

kerasR (version 0.8.1)

normalize: Normalize a Numpy array.

Description

It is generally very important to normalize the data matrix before fitting a neural network model in keras.

Usage

normalize(x, axis = -1, order = 2)

Arguments

x

Numpy array to normalize

axis

axis along which to normalize. (starts at 0). -1

order

Normalization order (e.g. 2 for L2 norm).

Author

Taylor B. Arnold, taylor.arnold@acm.org

References

Chollet, Francois. 2015. Keras: Deep Learning library for Theano and TensorFlow.