pub fn normalize(
x: &Array2<Float>,
norm: NormType,
axis: usize,
) -> Result<Array2<Float>>Expand description
Scale 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 equals one.
§Arguments
x- The data to normalizenorm- The norm to use (‘l1’, ‘l2’, or ‘max’)axis- Axis along which to normalize (1 for samples, 0 for features)
§Returns
Normalized data