minmax_scale

Function minmax_scale 

Source
pub fn minmax_scale(
    x: &Array2<Float>,
    feature_range: (Float, Float),
    axis: usize,
) -> Result<Array2<Float>>
Expand description

Transform features to range [0, 1]

§Arguments

  • x - The data to scale
  • feature_range - Desired range of transformed data
  • axis - Axis along which to scale (0 for features)

§Returns

Scaled data