def METHOD_NAME(self, X, feature, bins):
    """Calculates ALE function of specified features based on training set.
    Parameters
    ----------
    X : pandas.core.frame.DataFrame
        Training set on which model was trained.
    feature : str
        Feature for which to plot ALE.
    bins : int
        Number of bins used to split feature's space.
    """
    import alepython.ale as ale_impl
    ale, quantiles = ale_impl._first_order_ale_quant(
        self.model.predict, X, feature, bins
    )
    quantile_centers = ale_impl._get_centres(quantiles)
    if len(quantile_centers) < 2:
        raise RuntimeError("Not enough quantile centers to plot.")
    return pd.DataFrame({"ale": ale, "quantile_center": quantile_centers})