robust_scale

Function robust_scale 

Source
pub fn robust_scale(
    x: &Array2<Float>,
    axis: usize,
    with_centering: bool,
    with_scaling: bool,
    quantile_range: (Float, Float),
) -> Result<Array2<Float>>
Expand description

Scale features using statistics that are robust to outliers

§Arguments

  • x - The data to scale
  • axis - Axis along which to scale (0 for features)
  • with_centering - If true, center the data before scaling
  • with_scaling - If true, scale the data to interquartile range
  • quantile_range - Quantile range used to calculate scale

§Returns

Scaled data