def accuracy_proba(predictions, y):
    """
    Returns accuracy metric using predictions probability.

    :param predictions: (np.array or pandas Series) Model predictions
    :param y: (np.array or pandas Series) actual results

    :return: metric that evaluates how close those predictions actually were
    :rtype: float
    """
    return 1 - (y - predictions).abs().mean()
