def get_proba_attr(model):
    """Get the predict_proba, decision_function or predict method."""
    for attr in ("predict_proba", "decision_function", "predict"):
        if hasattr(model.estimator, attr):
            return attr