normalize: Normalize a matrix or nd-array

Description Usage Arguments Value

View source: R/utils.R

Description

Normalize a matrix or nd-array

Usage

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

Arguments

x

Matrix or array to normalize

axis

Axis along which to normalize. Axis indexes are 1-based (pass -1 to select the last axis).

order

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

Value

A normalized copy of the array.


dfalbel/keras documentation built on Nov. 27, 2019, 8:16 p.m.