pub fn discretize_equal_frequency<S>(
array: &ArrayBase<S, Ix2>,
n_bins: usize,
encode: &str,
axis: usize,
) -> Result<Array2<f64>>Expand description
Discretizes features using equal-frequency bins (quantiles)
§Arguments
array- The input array to discretizen_bins- The number of bins to createencode- The encoding method (‘onehot’ or ‘ordinal’)axis- The axis along which to discretize (0 for columns, 1 for rows)
§Returns
Result<Array2<f64>>- The discretized array