normalize: Normalize a Numpy array.

View source: R/utils.R

normalizeR Documentation

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(s)

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

References

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


kerasR documentation built on Aug. 17, 2022, 5:06 p.m.