spac.data_utils.rescale_features(features, min_quantile=0.01, max_quantile=0.99)[source]

Clip and rescale features outside the minimum and maximum quantile.

The rescaled features will be between 0 and 1.

Parameters:
  • features (pandas.Dataframe) – The DataRrame of features.

  • min_quantile (float) – The minimum quantile to be consider zero.

  • max_quantile (float) – The maximum quantile to be considerd 1.

Returns:

The created DataFrame with normalized features.

Return type:

pandas.DataFrame