def batch_mc_acc(predicted):
    """ Compute the accuracies for a batch of predictions and answers """
    N, C = predicted.squeeze().size()
    _, predicted_index = predicted.max(dim=1, keepdim=True)
    return (predicted_index == C - 1).float()