import torch


def _conformal_score_interval1(predictions, values, max_interval=1e+3):
    """ Compute the alternative non-conformity score of a set of values under interval predictions
    """
    diff = values - predictions.mean(dim=1).view(1, -1) 
    return torch.sign(diff) * max_interval + diff