import torch


def disagreement(logits_1, logits_2):
    """Disagreement between the predictions of two classifiers."""
    preds_1 = torch.argmax(logits_1, dim=-1).type(torch.int32)
    preds_2 = torch.argmax(logits_2, dim=-1).type(torch.int32)
    return torch.mean((preds_1 != preds_2).type(torch.float32))