alibi_detect.utils.discretizer module
- class alibi_detect.utils.discretizer.Discretizer(data, categorical_features, feature_names, percentiles=[25, 50, 75])[source]
Bases:
object
- __init__(data, categorical_features, feature_names, percentiles=[25, 50, 75])[source]
Initialize the discretizer.
- Parameters:
data (
ndarray
) – Data to discretizecategorical_features (
List
[int
]) – List of indices corresponding to the categorical columns. These features will not be discretized. The other features will be considered continuous and therefore discretized.percentiles (
List
[int
]) – Percentiles used for discretization