def compute_accuracy_with_preds(preds, labels):
    """Compute accuracy with predictions and labels"""
    correct = 0
    for i in range(len(preds)):
        if preds[i] == labels[i]:
            correct += 1
    return float(correct) / len(preds)