Class Normalizer

java.lang.Object
smile.feature.transform.Normalizer
All Implemented Interfaces:
Serializable, Function<Tuple,Tuple>, Transform

public class Normalizer extends Object implements Transform
Normalize samples individually to unit norm. Each sample (i.e. each row of the data matrix) with at least one non-zero component is rescaled independently of other samples so that its norm (L1 or L2) equals one.

Scaling inputs to unit norms is a common operation for text classification or clustering for instance.

See Also: